aboutsummaryrefslogtreecommitdiff
path: root/graphics/xzgv
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
parent9c6e090e2f6fd5ee58bd3d726576939fc43c92d7 (diff)
graphics/xzgv: Updated for version 0.9.2.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'graphics/xzgv')
-rw-r--r--graphics/xzgv/doinst.sh3
-rw-r--r--graphics/xzgv/xzgv.SlackBuild24
-rw-r--r--graphics/xzgv/xzgv.info8
3 files changed, 21 insertions, 14 deletions
diff --git a/graphics/xzgv/doinst.sh b/graphics/xzgv/doinst.sh
new file mode 100644
index 0000000000000..5fb28930db0b9
--- /dev/null
+++ b/graphics/xzgv/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
diff --git a/graphics/xzgv/xzgv.SlackBuild b/graphics/xzgv/xzgv.SlackBuild
index f2f5c415d2f4a..5edf65770d271 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}
diff --git a/graphics/xzgv/xzgv.info b/graphics/xzgv/xzgv.info
index b9d086e26e2ad..8a7a85e68cabd 100644
--- a/graphics/xzgv/xzgv.info
+++ b/graphics/xzgv/xzgv.info
@@ -1,10 +1,10 @@
PRGNAM="xzgv"
-VERSION="0.9.1"
+VERSION="0.9.2"
HOMEPAGE="https://sourceforge.net/projects/xzgv/"
-DOWNLOAD="https://downloads.sourceforge.net/xzgv/xzgv-0.9.1.tar.gz"
-MD5SUM="d6452ebd4911d986fa1176086afb6e33"
+DOWNLOAD="https://downloads.sourceforge.net/xzgv/xzgv-0.9.2.tar.gz"
+MD5SUM="87d14e59268ace5ba83005a6e20e2be7"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="markus reichelt"
+MAINTAINER="Markus Reichelt"
EMAIL="slackbuilds@mareichelt.de"