diff options
author | B. Watson <yalhcru@gmail.com> | 2021-10-20 14:06:42 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-10-29 17:07:20 +0700 |
commit | c11a44608267a4df27b7721533c42102d2ee953b (patch) | |
tree | 5127f38ff94a3e813f284f01a34e8a7789e72dee /games/oblige-legacy4/oblige-legacy4.SlackBuild | |
parent | 74ba4c12fe6a376c6ed8187688b561c9a8f6c750 (diff) |
games/oblige-legacy4: New-style icons.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/oblige-legacy4/oblige-legacy4.SlackBuild')
-rw-r--r-- | games/oblige-legacy4/oblige-legacy4.SlackBuild | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/games/oblige-legacy4/oblige-legacy4.SlackBuild b/games/oblige-legacy4/oblige-legacy4.SlackBuild index d452f3823fdc3..6876cd43e4cff 100644 --- a/games/oblige-legacy4/oblige-legacy4.SlackBuild +++ b/games/oblige-legacy4/oblige-legacy4.SlackBuild @@ -6,6 +6,11 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20211020 bkw: BUILD=3 +# - make the icon transparent +# - new-style icons (also transparent) +# - update man page, README, slack-desc slightly + # 20170621 bkw: fix build on -current. # 20140916 bkw: bump BUILD to 2. @@ -25,7 +30,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=oblige-legacy4 VERSION=${VERSION:-4.28b} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -37,9 +42,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 @@ -76,11 +78,8 @@ rm -rf ${SRCNAM}-${VERSION}-source unzip $CWD/$OLDNAM-$SRCVER-source.zip cd ${SRCNAM}-${VERSION}-source 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 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 {} \+ # Makefile.unixy originally came from the oblige author, I've hacked # it up to make it work with oblige 4.x and SBo's fltk13. @@ -102,9 +101,21 @@ make INSTALL_PREFIX=/usr OPTIMISE="$SLKCFLAGS" make install INSTALL_PREFIX=$PKG/usr mkdir -p $PKG/usr/share/pixmaps $PKG/usr/share/applications -cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop +# 128.png was created by extracting oblige.ico, then using the gimp +# to turn the white background into transparency. The rest were scaled +# down from that, with convert -resize. +for i in $CWD/icons/*.png; do + px=$( basename $i | cut -d. -f1 ) + size=${px}x${px} + dir=$PKG/usr/share/icons/hicolor/$size/apps + mkdir -p $dir + cat $i > $dir/$PRGNAM.png +done + +ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png + # man page written for this build mkdir -p $PKG/usr/man/man6 gzip -9c < $CWD/$PRGNAM.6 > $PKG/usr/man/man6/$PRGNAM.6.gz |