diff options
author | B. Watson <yalhcru@gmail.com> | 2021-10-28 06:29:46 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-10-29 17:07:25 +0700 |
commit | a555d5996294d0604415fb5d4077a3d325e67ab9 (patch) | |
tree | 938fb13949d534891a71175b7391d19d90f8158f /games | |
parent | cf8c488479b372be4f753183fd9e97493c5ebe1d (diff) | |
download | slackbuilds-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')
-rw-r--r-- | games/mininim/doinst.sh | 6 | ||||
-rw-r--r-- | games/mininim/mininim.SlackBuild | 23 | ||||
-rw-r--r-- | games/mininim/mininim.desktop | 2 | ||||
-rw-r--r-- | games/mininim/mininim.info | 2 | ||||
-rw-r--r-- | games/mininim/mininim.png | bin | 0 -> 12848 bytes |
5 files changed, 25 insertions, 8 deletions
diff --git a/games/mininim/doinst.sh b/games/mininim/doinst.sh index 5fb28930db..3e5691a052 100644 --- a/games/mininim/doinst.sh +++ b/games/mininim/doinst.sh @@ -1,3 +1,9 @@ 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 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 diff --git a/games/mininim/mininim.desktop b/games/mininim/mininim.desktop index 4b11fe2759..799f95ea9f 100644 --- a/games/mininim/mininim.desktop +++ b/games/mininim/mininim.desktop @@ -1,7 +1,7 @@ [Desktop Entry] Name=mininim Comment=MININIM: Prince of Persia I -Exec=mininim +Exec=/usr/games/mininim Icon=mininim Terminal=false Type=Application diff --git a/games/mininim/mininim.info b/games/mininim/mininim.info index 029d1ab780..e5304777db 100644 --- a/games/mininim/mininim.info +++ b/games/mininim/mininim.info @@ -1,6 +1,6 @@ PRGNAM="mininim" VERSION="201701122309" -HOMEPAGE="http://oitofelix.github.io/mininim/" +HOMEPAGE="https://oitofelix.github.io/mininim/" DOWNLOAD="https://github.com/oitofelix/mininim/archive/v201701122309/mininim-201701122309.tar.gz" MD5SUM="da4e45c0aa08f689cd4848dcc8de9214" DOWNLOAD_x86_64="" diff --git a/games/mininim/mininim.png b/games/mininim/mininim.png Binary files differnew file mode 100644 index 0000000000..7ef96899d0 --- /dev/null +++ b/games/mininim/mininim.png |