summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network/kfilebox/kfilebox.SlackBuild29
-rw-r--r--network/kfilebox/kfilebox.info6
-rw-r--r--network/kfilebox/kfilebox.pngbin0 -> 11397 bytes
3 files changed, 25 insertions, 10 deletions
diff --git a/network/kfilebox/kfilebox.SlackBuild b/network/kfilebox/kfilebox.SlackBuild
index 6cd5fffc4d..8263c9c379 100644
--- a/network/kfilebox/kfilebox.SlackBuild
+++ b/network/kfilebox/kfilebox.SlackBuild
@@ -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
diff --git a/network/kfilebox/kfilebox.info b/network/kfilebox/kfilebox.info
index 9ba7b5fac8..dc763a2ff5 100644
--- a/network/kfilebox/kfilebox.info
+++ b/network/kfilebox/kfilebox.info
@@ -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"
diff --git a/network/kfilebox/kfilebox.png b/network/kfilebox/kfilebox.png
new file mode 100644
index 0000000000..0f66f62f50
--- /dev/null
+++ b/network/kfilebox/kfilebox.png
Binary files differ