summaryrefslogtreecommitdiffstats
path: root/source/xap/gftp/gftp.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/xap/gftp/gftp.SlackBuild')
-rwxr-xr-xsource/xap/gftp/gftp.SlackBuild19
1 files changed, 7 insertions, 12 deletions
diff --git a/source/xap/gftp/gftp.SlackBuild b/source/xap/gftp/gftp.SlackBuild
index 4ba914719..9431f3ac4 100755
--- a/source/xap/gftp/gftp.SlackBuild
+++ b/source/xap/gftp/gftp.SlackBuild
@@ -24,13 +24,13 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=gftp
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$(uname -m)" in
i?86) ARCH=i586 ;;
- arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
+ arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$(uname -m) ;;
esac
@@ -92,18 +92,14 @@ CFLAGS="$SLKCFLAGS" \
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
+if [ ! -d $PKG/usr/share/pixmaps ]; then
+ mkdir -p $PKG/usr/share/pixmaps
+ cp -a $PKG/usr/share/gftp/gftp.png $PKG/usr/share/pixmaps
+fi
+
find $PKG | xargs file | grep -e "executable" -e "shared object" \
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-# Put symlinks to the themable icons in place
-mkdir -p $PKG/usr/share/icons/hicolor/{scalable,16x16,22x22,24x24,32x32,48x48}/apps
-ln -s /usr/share/gftp/gftp-scalable.svg \
- $PKG/usr/share/icons/hicolor/scalable/apps/gftp.svg
-for i in 16x16 22x22 24x24 32x32 48x48 ; do
- ln -s /usr/share/gftp/gftp-${i}.png \
- $PKG/usr/share/icons/hicolor/${i}/apps/gftp.png
-done
-
mkdir -p $PKG/usr/doc/gftp-$VERSION
cp -a \
AUTHORS COPYING NEWS README README.html THANKS TODO docs/USERS-GUIDE \
@@ -119,4 +115,3 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $TMP/gftp-$VERSION-$ARCH-$BUILD.txz
-