diff options
Diffstat (limited to 'games/eureka/eureka.SlackBuild')
-rw-r--r-- | games/eureka/eureka.SlackBuild | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/games/eureka/eureka.SlackBuild b/games/eureka/eureka.SlackBuild index c1f0dc7541..b9da7267a7 100644 --- a/games/eureka/eureka.SlackBuild +++ b/games/eureka/eureka.SlackBuild @@ -23,6 +23,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20230531 bkw: remove unused SLKCFLAGS and LIBDIRSUFFIX variables. + +# 20230108 bkw: BUILD=2 +# - strip binary +# - keep only useful parts of INSTALL.txt +# - new-style icon + # 20200717 bkw: update for v1.27b # 20200415 bkw: @@ -35,7 +42,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=eureka VERSION=${VERSION:-1.27b} SRCVER=${VERSION/.} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -47,9 +54,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 @@ -59,19 +63,7 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi +# fltk-config knows the right flags and lib dir, no SLKCFLAGS or LIBDIRSUFFIX. set -e @@ -93,6 +85,7 @@ sed -i -e 's,\<bin\>,games,g' \ Makefile LINKER_FLAGS="\ + -Wl,-s \ -lfltk \ -lfltk_images \ -lfltk_gl \ @@ -106,18 +99,22 @@ make install \ PREFIX="$PKG/usr" \ LDFLAGS="$LINKER_FLAGS" -# Binary already stripped, thanks. - mkdir -p $PKG/usr/share/applications cp misc/$PRGNAM.desktop $PKG/usr/share/applications mkdir -p $PKG/usr/share/pixmaps cp misc/$PRGNAM.xpm $PKG/usr/share/pixmaps +# 20230108 bkw: new-style icon (just the one). +mkdir -p $PKG/usr/share/icons/hicolor/32x32/apps +convert misc/$PRGNAM.xpm $PKG/usr/share/icons/hicolor/32x32/apps/$PRGNAM.png + mkdir -p $PKG/usr/man/man6 gzip -9c < misc/$PRGNAM.6 > $PKG/usr/man/man6/$PRGNAM.6.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +sed -n '/^SETTING UP/,$p' INSTALL.txt > SETUP.txt +rm -f INSTALL.txt cp -a *.txt docs/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |