diff options
author | B. Watson <yalhcru@gmail.com> | 2021-11-02 04:22:15 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-12-04 10:08:53 +0700 |
commit | b4b932fa74598f3e4aa9bf7cdebc871ed537751c (patch) | |
tree | c7abb2621440fddb49e095bd2b5f2a984cf0093b /games/hack-of-life | |
parent | bf998447e6c92b85ff7a17f036c344476843c28e (diff) |
games/hack-of-life: Icon and .desktop.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/hack-of-life')
-rw-r--r-- | games/hack-of-life/hack-of-life.SlackBuild | 21 | ||||
-rw-r--r-- | games/hack-of-life/hack-of-life.desktop | 8 | ||||
-rw-r--r-- | games/hack-of-life/hack-of-life.png | bin | 0 -> 938 bytes |
3 files changed, 25 insertions, 4 deletions
diff --git a/games/hack-of-life/hack-of-life.SlackBuild b/games/hack-of-life/hack-of-life.SlackBuild index b81f71838896..e358c00cad69 100644 --- a/games/hack-of-life/hack-of-life.SlackBuild +++ b/games/hack-of-life/hack-of-life.SlackBuild @@ -12,11 +12,13 @@ # standard in the roguelike world... It's not configurable in this # game, meaning I'm never going to enjoy playing it very much :( +# 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:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -28,9 +30,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,6 +90,20 @@ 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 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 000000000000..b74de7162b6f --- /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.png b/games/hack-of-life/hack-of-life.png Binary files differnew file mode 100644 index 000000000000..f89e6fbd4b40 --- /dev/null +++ b/games/hack-of-life/hack-of-life.png |