From 2382f374fefac94e25b602fa062cec84dd61c568 Mon Sep 17 00:00:00 2001 From: Johannes Schoepfer Date: Fri, 21 Apr 2023 01:43:13 +0100 Subject: games/neverball: Make flags added. Make patch removed. Signed-off-by: bedlam Signed-off-by: Willy Sudiarto Raharjo --- games/neverball/neverball.SlackBuild | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) (limited to 'games/neverball/neverball.SlackBuild') diff --git a/games/neverball/neverball.SlackBuild b/games/neverball/neverball.SlackBuild index c56fb19f0b..9b01469ff3 100644 --- a/games/neverball/neverball.SlackBuild +++ b/games/neverball/neverball.SlackBuild @@ -2,11 +2,11 @@ # Slackware build script for Neverball -# Copyright 2007-2009 Frank Caraballo +# Copyright 2007-2009 Frank Caraballo +# Modified by Brad Hermanson +# Copyright 2023 Johannes Schoepfer, Germany # All rights reserved. # -# Modified by Brad Hermanson -# # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: # @@ -41,9 +41,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 @@ -84,21 +81,19 @@ find -L . \ patch -p1 < $CWD/gcc10.patch -# Patch Makefile to change data directory and to make it compile -# with appropriate flags -patch -p1 < $CWD/Makefile.diff || exit 1 - -make CFLAGS="$SLKCFLAGS" || exit 1 +make LOCALEDIR=/usr/share/locale DATADIR=/usr/share/$PRGNAM \ + CPPFLAGS="$SLKCFLAGS -DNDEBUG" CFLAGS="$SLKCFLAGS" # Fix map permissions that were created by mapc during compile -find data/ -name '*.sol' -exec chmod 644 {} \; +find data/ -name '*.sol' -exec chmod 644 {} + # Delete the .map files that are no longer required -find data/ -name '*.map' -exec rm {} \; +find data/ -name '*.map' -exec rm {} + mkdir -p $PKG/usr/{bin,share/$PRGNAM} -cp -a mapc $PRGNAM $BONUS $PKG/usr/bin || exit 1 -cp -a data/ $PKG/usr/share/$PRGNAM || exit 1 +cp -a mapc $PRGNAM $BONUS $PKG/usr/bin +cp -a data/* $PKG/usr/share/$PRGNAM +cp -a locale $PKG/usr/share/ ( cd dist for i in $PRGNAM $BONUS ; do @@ -112,7 +107,9 @@ cp -a data/ $PKG/usr/share/$PRGNAM || exit 1 install -D -m 0644 ${i}_256.png $PKG/usr/share/icons/hicolor/256x256/apps/$i.png install -D -m 0644 ${i}_512.png $PKG/usr/share/icons/hicolor/512x512/apps/$i.png done - cp -a ${PRGNAM}_replay.png $PKG/usr/share/icons/hicolor/48x48/apps/${PRGNAM}_replay.png + # fix png icon size + convert ${PRGNAM}_replay.png -resize 48x48\! \ + $PKG/usr/share/icons/hicolor/48x48/apps/${PRGNAM}_replay.png install -D -m 0644 neverlogos.svg $PKG/usr/share/icons/hicolor/scalable/apps/neverlogos.svg install -D -m 0644 mapc.1 $PKG/usr/man/man1/mapc.1 install -D -m 0644 $PRGNAM.6 $PKG/usr/man/man6/$PRGNAM.6 @@ -126,7 +123,8 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE.md README.md doc/* $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE.md README.md doc/{authors.txt,changes.txt,manual.txt,release-notes.md} \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install -- cgit v1.2.3-80-g2a13