diff options
author | B. Watson <yalhcru@gmail.com> | 2021-10-11 22:31:39 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-10-13 00:52:43 +0700 |
commit | 07bb39d7cb8bb8c9148f23b124e4401805f4bd8b (patch) | |
tree | 52daef56d818abafd44e8e85d467b0937b222e43 /games/yar | |
parent | c48b5ec7ff360676f2a56c52485db02cc010c74d (diff) |
games/yar: New-style icon.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/yar')
-rw-r--r-- | games/yar/yar.SlackBuild | 25 | ||||
-rw-r--r-- | games/yar/yar.info | 4 |
2 files changed, 16 insertions, 13 deletions
diff --git a/games/yar/yar.SlackBuild b/games/yar/yar.SlackBuild index dc564690709a..322b6440ccb0 100644 --- a/games/yar/yar.SlackBuild +++ b/games/yar/yar.SlackBuild @@ -6,11 +6,19 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20211011 bkw: BUILD=2, new-style icon + +# TODO: make a bigger/better icon. The game doesn't have any image +# files, it draws everything algorithmically, so I have to take +# a screenshot. Except I'm on -current, and the fucking X server +# freezes when I try to do that. Maybe this will get fixed, but I'm +# not holding my breath. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=yar VERSION=${VERSION:-0.99} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -22,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 @@ -57,11 +62,8 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ zcat $CWD/missingincludes.diff.gz | patch -p1 @@ -84,8 +86,9 @@ cp -a AUTHORS COPYING ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild # icon made from a screenshot of the game -mkdir -p $PKG/usr/share/pixmaps -cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png +mkdir -p $PKG/usr/share/icons/hicolor/48x48/apps $PKG/usr/share/pixmaps +cat $CWD/$PRGNAM.png > $PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png +ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png # .desktop written for this build mkdir -p $PKG/usr/share/applications diff --git a/games/yar/yar.info b/games/yar/yar.info index 8b45ae5e176b..714177aad100 100644 --- a/games/yar/yar.info +++ b/games/yar/yar.info @@ -1,7 +1,7 @@ PRGNAM="yar" VERSION="0.99" -HOMEPAGE="http://web.archive.org/web/20081012141232/http://www.sourcefiles.org/Games/Action/Space_Shooter/yar-0.99.tar.gz.shtml" -DOWNLOAD="http://distfiles.gentoo.org/distfiles/yar-0.99.tar.gz" +HOMEPAGE="https://web.archive.org/web/20081012141232/http://www.sourcefiles.org/Games/Action/Space_Shooter/yar-0.99.tar.gz.shtml" +DOWNLOAD="https://distfiles.gentoo.org/distfiles/yar-0.99.tar.gz" MD5SUM="eab1d6a58ed13410a5347f83f8938367" DOWNLOAD_x86_64="" MD5SUM_x86_64="" |