From fd980a786cad465184ed1b631aece157a6d3119c Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 18 Nov 2021 17:21:02 -0500 Subject: games/golly: New-style icons. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- games/golly/golly.SlackBuild | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'games/golly/golly.SlackBuild') diff --git a/games/golly/golly.SlackBuild b/games/golly/golly.SlackBuild index ed03a34006ff..724467d8b6b2 100644 --- a/games/golly/golly.SlackBuild +++ b/games/golly/golly.SlackBuild @@ -24,6 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Updated for golly 2.6 -- the source directory structure got changed a bit too! +# 20211118 bkw: BUILD=2, new-style icons, tweak .desktop file. # 20201112 bkw: update for v4.0. Which adds a python3 dep. # 20181211 bkw: # - Take over maintenance. @@ -39,7 +40,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=golly VERSION=${VERSION:-4.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -51,9 +52,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 @@ -126,18 +124,19 @@ cp -a Help Patterns Rules Scripts $PKG/$SHAREDIR # Don't need +x permissions on HTML pages, or even Lua/Python scripts. find $PKG/$SHAREDIR -type f -exec chmod 644 {} + -cd gui-wx/icons -for i in 16 32 48; do - convert appicon${i}.ico -resize ${i}x${i}! $PRGNAM-${i}.png - DIR=$PKG/usr/share/icons/hicolor/${i}x${i}/apps/ - mkdir -p $DIR - install -m 0644 $PRGNAM-${i}.png $DIR/$PRGNAM.png +# icons extracted from app.icns with icns2png, to get the 64x64 and 128x128 ones. +for i in $CWD/icons/*.png; do + px="$( basename $i .png )" + size=${px}x${px} + dir=$PKG/usr/share/icons/hicolor/$size/apps + mkdir -p $dir + cat $i > $dir/$PRGNAM.png done mkdir -p $PKG/usr/share/pixmaps ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png -cd ../../docs +cd docs mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a License.html ReadMe.html ToDo.html $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -- cgit v1.2.3