graphics/xzgv: Add douninst.sh.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-03-08 00:55:45 -05:00 committed by Willy Sudiarto Raharjo
parent bc4733a7a9
commit 4df9d85226
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
4 changed files with 32 additions and 8 deletions

View File

@ -9,5 +9,5 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
fi fi
if [ -x /usr/bin/install-info ]; then 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 fi

22
graphics/xzgv/douninst.sh Normal file
View File

@ -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

View File

@ -7,6 +7,8 @@
# Original author: Markus Reichelt. # Original author: Markus Reichelt.
# Now maintained by B. Watson <urchlay@slackware.uk>. # 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 # 20230102 bkw: v0.9.2_2
# - take over maintenance. # - take over maintenance.
# - relicense as WTFPL. # - relicense as WTFPL.
@ -20,7 +22,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=xzgv PRGNAM=xzgv
VERSION=${VERSION:-0.9.2_2} VERSION=${VERSION:-0.9.2_2}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -115,15 +117,15 @@ for i in debian/$PRGNAM-*.png; do
install -m0644 -oroot -groot $i $dir/$PRGNAM.png install -m0644 -oroot -groot $i $dir/$PRGNAM.png
done done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
cp -a \ mkdir -p $PKGDOC
AUTHORS ChangeLog COPYING NEWS README TODO \ cp -a AUTHORS ChangeLog COPYING NEWS README TODO $PKGDOC
$PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/douninst.sh > $PKG/install/douninst.sh
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE

View File

@ -2,7 +2,7 @@ PRGNAM="xzgv"
VERSION="0.9.2_2" VERSION="0.9.2_2"
HOMEPAGE="https://sourceforge.net/projects/xzgv/" HOMEPAGE="https://sourceforge.net/projects/xzgv/"
DOWNLOAD="https://downloads.sourceforge.net/xzgv/xzgv-0.9.2.tar.gz \ 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 \ MD5SUM="87d14e59268ace5ba83005a6e20e2be7 \
2a838db880ef95b5c51f3f2a8c8207cb" 2a838db880ef95b5c51f3f2a8c8207cb"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""