diff options
author | B. Watson <urchlay@slackware.uk> | 2023-03-08 00:55:45 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-03-12 08:48:27 +0700 |
commit | 4df9d852264d82222816d9c2a651578e1d58bdd7 (patch) | |
tree | e9cfe9315d832ce103328e7e57053e684a97fbcd /graphics/xzgv | |
parent | bc4733a7a9174d1ddd193489037274c7ee4d75b6 (diff) |
graphics/xzgv: Add douninst.sh.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/xzgv')
-rw-r--r-- | graphics/xzgv/doinst.sh | 2 | ||||
-rw-r--r-- | graphics/xzgv/douninst.sh | 22 | ||||
-rw-r--r-- | graphics/xzgv/xzgv.SlackBuild | 14 | ||||
-rw-r--r-- | graphics/xzgv/xzgv.info | 2 |
4 files changed, 32 insertions, 8 deletions
diff --git a/graphics/xzgv/doinst.sh b/graphics/xzgv/doinst.sh index 1ebe7d88622a..0f65eff42756 100644 --- a/graphics/xzgv/doinst.sh +++ b/graphics/xzgv/doinst.sh @@ -9,5 +9,5 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then fi if [ -x /usr/bin/install-info ]; then - chroot . /usr/bin/install-info --info-dir=/usr/info /usr/info/xzgv.info.gz 2> /dev/null + /usr/bin/install-info --info-dir=usr/info usr/info/xzgv.info.gz 2> /dev/null fi diff --git a/graphics/xzgv/douninst.sh b/graphics/xzgv/douninst.sh new file mode 100644 index 000000000000..09f14ed073f8 --- /dev/null +++ b/graphics/xzgv/douninst.sh @@ -0,0 +1,22 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + +# How to cleanly remove a GNU info file from the index: +# Rebuild the info dir after our info file was removed. With modern versions +# of install-info, it's OK if our wildcard includes e.g. gcc.info.gz and +# gcc-1.info.gz (it won't create duplicate index entries). We have at least +# one package that does NOT compress its info files, for a good reason, so +# we can't say *.info.gz here. +if [ -x /usr/bin/install-info -a -d usr/info ]; then + ( cd usr/info + rm -f dir + for i in *.info*; do /usr/bin/install-info $i dir 2>/dev/null; done + ) +fi diff --git a/graphics/xzgv/xzgv.SlackBuild b/graphics/xzgv/xzgv.SlackBuild index f8807be470a5..3f7bad7a4c53 100644 --- a/graphics/xzgv/xzgv.SlackBuild +++ b/graphics/xzgv/xzgv.SlackBuild @@ -7,6 +7,8 @@ # Original author: Markus Reichelt. # Now maintained by B. Watson <urchlay@slackware.uk>. +# 20230308 bkw: BUILD=2, add doinunst.sh to clean up GNU info index. + # 20230102 bkw: v0.9.2_2 # - take over maintenance. # - relicense as WTFPL. @@ -20,7 +22,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=xzgv VERSION=${VERSION:-0.9.2_2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -115,15 +117,15 @@ for i in debian/$PRGNAM-*.png; do install -m0644 -oroot -groot $i $dir/$PRGNAM.png done -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - AUTHORS ChangeLog COPYING NEWS README TODO \ - $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a AUTHORS ChangeLog COPYING NEWS README TODO $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh +cat $CWD/douninst.sh > $PKG/install/douninst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/graphics/xzgv/xzgv.info b/graphics/xzgv/xzgv.info index a96fe1e1dc7e..a0e2bc6089c9 100644 --- a/graphics/xzgv/xzgv.info +++ b/graphics/xzgv/xzgv.info @@ -2,7 +2,7 @@ PRGNAM="xzgv" VERSION="0.9.2_2" HOMEPAGE="https://sourceforge.net/projects/xzgv/" DOWNLOAD="https://downloads.sourceforge.net/xzgv/xzgv-0.9.2.tar.gz \ - http://deb.debian.org/debian/pool/main/x/xzgv/xzgv_0.9.2-2.debian.tar.xz" + https://deb.debian.org/debian/pool/main/x/xzgv/xzgv_0.9.2-2.debian.tar.xz" MD5SUM="87d14e59268ace5ba83005a6e20e2be7 \ 2a838db880ef95b5c51f3f2a8c8207cb" DOWNLOAD_x86_64="" |