diff options
Diffstat (limited to 'games/hack-of-life')
-rw-r--r-- | games/hack-of-life/doinst.sh | 9 | ||||
-rw-r--r-- | games/hack-of-life/hack-of-life.SlackBuild | 25 | ||||
-rw-r--r-- | games/hack-of-life/hack-of-life.desktop | 8 | ||||
-rw-r--r-- | games/hack-of-life/hack-of-life.info | 2 | ||||
-rw-r--r-- | games/hack-of-life/hack-of-life.png | bin | 0 -> 938 bytes |
5 files changed, 38 insertions, 6 deletions
diff --git a/games/hack-of-life/doinst.sh b/games/hack-of-life/doinst.sh new file mode 100644 index 0000000000..3e5691a052 --- /dev/null +++ b/games/hack-of-life/doinst.sh @@ -0,0 +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/hack-of-life/hack-of-life.SlackBuild b/games/hack-of-life/hack-of-life.SlackBuild index b81f718388..b92dbde447 100644 --- a/games/hack-of-life/hack-of-life.SlackBuild +++ b/games/hack-of-life/hack-of-life.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for hack-of-life -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. @@ -12,11 +12,14 @@ # standard in the roguelike world... It's not configurable in this # game, meaning I'm never going to enjoy playing it very much :( +# 20230107 bkw: BUILD=3, add doinst.sh. +# 20211102 bkw: BUILD=2, icon and .desktop. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=hack-of-life VERSION=${VERSION:-20130628_3a6c824} -BUILD=${BUILD:-1} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -28,9 +31,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 @@ -91,10 +91,25 @@ gzip -9c < $CWD/hackoflife.6 > $PKG/usr/man/man6/hackoflife.6.gz # chose to name the package and executable 2 different names... ln -s hackoflife.6.gz $PKG/usr/man/man6/$PRGNAM.6.gz +# icon and .desktop by SlackBuild author. +mkdir -p $PKG/usr/share/applications +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop + +for px in 16 32 48 64; do + size=${px}x${px} + dir=$PKG/usr/share/icons/hicolor/$size/apps + mkdir -p $dir + convert -resize $size $CWD/$PRGNAM.png $dir/$PRGNAM.png +done + +mkdir -p $PKG/usr/share/pixmaps +ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png + cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/games/hack-of-life/hack-of-life.desktop b/games/hack-of-life/hack-of-life.desktop new file mode 100644 index 0000000000..b74de7162b --- /dev/null +++ b/games/hack-of-life/hack-of-life.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Hack Of Life +Comment=Multiplayer Conway's Life Variant +Exec=/usr/games/hack-of-life +Icon=hack-of-life +Terminal=true +Type=Application +Categories=Game;StrategyGame; diff --git a/games/hack-of-life/hack-of-life.info b/games/hack-of-life/hack-of-life.info index e7e7eb2225..5cac1e7d91 100644 --- a/games/hack-of-life/hack-of-life.info +++ b/games/hack-of-life/hack-of-life.info @@ -7,4 +7,4 @@ DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" MAINTAINER="B. Watson" -EMAIL="yalhcru@gmail.com" +EMAIL="urchlay@slackware.uk" diff --git a/games/hack-of-life/hack-of-life.png b/games/hack-of-life/hack-of-life.png Binary files differnew file mode 100644 index 0000000000..f89e6fbd4b --- /dev/null +++ b/games/hack-of-life/hack-of-life.png |