From 739ded0f6c36acbeb9d4efb2fc4919fc6d81cd18 Mon Sep 17 00:00:00 2001 From: Markus Reichelt Date: Sat, 17 Nov 2018 20:18:59 +0000 Subject: graphics/xzgv: Updated for version 0.9.2. Signed-off-by: David Spencer --- graphics/xzgv/doinst.sh | 3 +++ graphics/xzgv/xzgv.SlackBuild | 24 ++++++++++++++---------- graphics/xzgv/xzgv.info | 8 ++++---- 3 files changed, 21 insertions(+), 14 deletions(-) create mode 100644 graphics/xzgv/doinst.sh (limited to 'graphics/xzgv') diff --git a/graphics/xzgv/doinst.sh b/graphics/xzgv/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /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 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} diff --git a/graphics/xzgv/xzgv.info b/graphics/xzgv/xzgv.info index b9d086e26e..8a7a85e68c 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" -- cgit v1.2.3