diff options
Diffstat (limited to 'graphics/xzgv/xzgv.SlackBuild')
-rw-r--r-- | graphics/xzgv/xzgv.SlackBuild | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/graphics/xzgv/xzgv.SlackBuild b/graphics/xzgv/xzgv.SlackBuild index f2f5c415d2..5edf65770d 100644 --- a/graphics/xzgv/xzgv.SlackBuild +++ b/graphics/xzgv/xzgv.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for xzgv -# Copyright (c) 2010 Markus Reichelt, Aachen, DE +# Copyright (c) 2010-2018 Markus Reichelt, Aachen, DE # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -24,16 +24,15 @@ # SUCH DAMAGE. # # markus reichelt, slackbuilds@mareichelt.de, 0xCCEEF115 -# 2010 June 1 - initial release PRGNAM=xzgv -VERSION=${VERSION:-0.9.1} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.9.2} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -45,8 +44,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -86,14 +85,18 @@ echo "USE_A4_DEF=-t @afourpaper">>config.mk echo "LDFLAGS=-lX11 -lm">> config.mk make -cd doc ; make info ; cd .. -make install +mv src/xzgv $PKG/usr/bin find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +mv doc/xzgv.1 $PKG/usr/man/man1 + find $PKG/usr/man/man1 -type f -exec gzip -9 {} \; -rm -f $PKG/usr/info/dir +rmdir $PKG/usr/info + +mkdir -p $PKG/usr/share/applications +cat src/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ @@ -103,6 +106,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |