network/kfilebox: Updated for version 0.49.

Added a proper icon, forced CFLAGS,
cutted away improper stripping

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2012-09-25 16:19:07 +02:00 committed by Robby Workman
parent d5ad0f5d06
commit 267fe29cd9
3 changed files with 25 additions and 10 deletions

View file

@ -24,7 +24,7 @@
# SUCH DAMAGE.
PRGNAM=kfilebox
VERSION=${VERSION:-0.4.7}
VERSION=${VERSION:-0.4.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -41,14 +41,24 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
else
SLKCFLAGS="-O2"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
rm -rf ${PRGNAM}_${VERSION}
tar xvf $CWD/${PRGNAM}_${VERSION}.tar.gz
cd ${PRGNAM}_${VERSION}
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@ -57,17 +67,22 @@ find . \
-exec chmod 644 {} \;
qmake
sed -i "s|-O2|${SLKCFLAGS}|" Makefile
sed -i "s|-strip\ .*||" Makefile
make
make install INSTALL_ROOT=$PKG
# Weird. As a normal user, this is installed, but not as root
mkdir -p PKG/usr/bin
install -m 0755 bin/$PRGNAM $PKG/usr/bin
# Install a proper icon
install -m 0644 -D $CWD/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
sed -i "s|/$PRGNAM/|/pixmaps/|" $PKG/usr/share/*/$PRGNAM.desktop
rm -fr $PKG/usr/share/$PRGNAM
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,8 +1,8 @@
PRGNAM="kfilebox"
VERSION="0.4.7"
VERSION="0.4.9"
HOMEPAGE="http://kdropbox.deuteros.es/"
DOWNLOAD="http://downloads.sourceforge.net/kdropbox/kfilebox-0.4.7.tar.gz"
MD5SUM="7a85e725f49f58a0289504e1a021297e"
DOWNLOAD="http://ponce.cc/slackware/sources/repo/kfilebox_0.4.9.tar.gz"
MD5SUM="fdec6cd4c37a4c9d06325f89d3ed2ee1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="dropbox"

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB