summaryrefslogtreecommitdiff
path: root/graphics/xzgv/xzgv.SlackBuild
diff options
context:
space:
mode:
authorMarkus Reichelt <slackbuilds@mareichelt.de>2018-11-17 20:18:59 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-11-24 12:35:10 +0700
commit739ded0f6c36acbeb9d4efb2fc4919fc6d81cd18 (patch)
treecdef01f5f2c989453726d80f9035cee46911ea2b /graphics/xzgv/xzgv.SlackBuild
parent9c6e090e2f6fd5ee58bd3d726576939fc43c92d7 (diff)
downloadslackbuilds-739ded0f6c36acbeb9d4efb2fc4919fc6d81cd18.tar.gz
graphics/xzgv: Updated for version 0.9.2.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'graphics/xzgv/xzgv.SlackBuild')
-rw-r--r--graphics/xzgv/xzgv.SlackBuild24
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}