aboutsummaryrefslogtreecommitdiff
path: root/games/antimicrox
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-08 02:27:19 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-09 15:45:09 +0700
commit22aec8b620694041ec1f88bf3cc3be3c09f1e39a (patch)
tree5cb9c646d8f51aee7cee8e4cc171f89bdfbdd858 /games/antimicrox
parent3aca0bd99f8e3975e8b2e3ec6dcc8b8e6866398f (diff)
games/antimicrox: Fix docs, doinst.sh.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/antimicrox')
-rw-r--r--games/antimicrox/antimicrox.SlackBuild11
-rw-r--r--games/antimicrox/doinst.sh6
2 files changed, 15 insertions, 2 deletions
diff --git a/games/antimicrox/antimicrox.SlackBuild b/games/antimicrox/antimicrox.SlackBuild
index a9797f8d976e..868ba7e13e4d 100644
--- a/games/antimicrox/antimicrox.SlackBuild
+++ b/games/antimicrox/antimicrox.SlackBuild
@@ -8,6 +8,10 @@
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
+# 20220408 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - remove /usr/share/doc.
+# - add gtk-update-icon-cache to doinst.sh.
+
# 20220219 bkw: Modified by SlackBuilds.org:
# - fix build on Slackware 15.0.
# - remove option to build with qt5: it fails.
@@ -17,7 +21,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=antimicrox
VERSION=${VERSION:-3.2.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
DOCDIR=${DOCDIR:-/usr/doc}
@@ -92,8 +96,11 @@ make
make install/strip DESTDIR=$PKG
cd ..
+# 20220408 bkw: do not want!
+rm -rf $PKG/usr/share/doc
+
mkdir -p $PKG/$DOCDIR/$PRGNAM-$VERSION
-cp -a README.md BUILDING.md CHANGELOG.md LICENSE \
+cp -a README.md CHANGELOG.md LICENSE \
ProfileTips.md $PKG/$DOCDIR/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > \
$PKG/$DOCDIR/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/games/antimicrox/doinst.sh b/games/antimicrox/doinst.sh
index 9a8ded3c6034..9424ce43ff57 100644
--- a/games/antimicrox/doinst.sh
+++ b/games/antimicrox/doinst.sh
@@ -5,3 +5,9 @@ fi
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database usr/share/mime >/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