summaryrefslogtreecommitdiff
path: root/games/mininim/mininim.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-10-28 06:29:46 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-29 17:07:25 +0700
commita555d5996294d0604415fb5d4077a3d325e67ab9 (patch)
tree938fb13949d534891a71175b7391d19d90f8158f /games/mininim/mininim.SlackBuild
parentcf8c488479b372be4f753183fd9e97493c5ebe1d (diff)
downloadslackbuilds-a555d5996294d0604415fb5d4077a3d325e67ab9.tar.gz
games/mininim: Fix -current build.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/mininim/mininim.SlackBuild')
-rw-r--r--games/mininim/mininim.SlackBuild23
1 files changed, 17 insertions, 6 deletions
diff --git a/games/mininim/mininim.SlackBuild b/games/mininim/mininim.SlackBuild
index 2b7fd606a3..5009da6161 100644
--- a/games/mininim/mininim.SlackBuild
+++ b/games/mininim/mininim.SlackBuild
@@ -6,6 +6,12 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20211028 bkw: BUILD=2
+# - fix -current build.
+# - new-style icon.
+# - /usr/share/mininim => /usr/share/games/mininim.
+# - still no new release.
+
# 20201105 bkw: Minor nitpickey edits to the script, but no changes
# to the package. 201701122309 is still the latest release. The newer
# stuff from this year is "Pre-alpha" and "Pre-release".
@@ -19,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=mininim
VERSION=${VERSION:-201701122309}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -31,9 +37,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -66,7 +69,6 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
@@ -77,6 +79,8 @@ sed -i 's,@arrow@,@arrow{}@,' doc/$PRGNAM.texi
# this takes a minute due to the gnulib stuff...
./bootstrap
+SLKCFLAGS+=" -fcommon"
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -87,6 +91,7 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
+ --datadir=/usr/share/games \
--build=$ARCH-slackware-linux
make
@@ -119,9 +124,15 @@ fi
# .desktop file written by SlackBuild author.
mkdir -p $PKG/usr/share/pixmaps $PKG/usr/share/applications
-ln -s ../$PRGNAM/data/icons/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+# upstream's icon (data/icons/mininim.png) is an oddball size, 24x43.
+# my icon was made by centering upstream's in a 48x48 transparent field.
+ICODIR=$PKG/usr/share/icons/hicolor/48x48/apps
+mkdir -p $ICODIR
+cat $CWD/$PRGNAM.png > $ICODIR/$PRGNAM.png
+ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
+
# docs already installed.
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild