diff options
Diffstat (limited to 'games/ZEsarUX/ZEsarUX.SlackBuild')
-rw-r--r-- | games/ZEsarUX/ZEsarUX.SlackBuild | 36 |
1 files changed, 27 insertions, 9 deletions
diff --git a/games/ZEsarUX/ZEsarUX.SlackBuild b/games/ZEsarUX/ZEsarUX.SlackBuild index e64ad44258f4a..55447bd822fba 100644 --- a/games/ZEsarUX/ZEsarUX.SlackBuild +++ b/games/ZEsarUX/ZEsarUX.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for ZEsarUX -# Copyright 2018 Antonio Leal, Porto Salvo, Oeiras, Portugal +# Copyright 2022 Antonio Leal, Porto Salvo, Oeiras, Portugal # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=ZEsarUX -VERSION=${VERSION:-6.0} +VERSION=${VERSION:-10.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -62,7 +62,6 @@ else fi set -e - rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -76,20 +75,39 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ -sed "5iINSTALLPREFIX=$PKG/opt/ZEsarUX" generate_install_sh.sh > aux_generate_install_sh.sh -mv aux_generate_install_sh.sh generate_install_sh.sh -chmod +x generate_install_sh.sh - SLKCFLAGS+=" -fcommon" CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix /opt/ZEsarUX +./configure --prefix=/opt/ZEsarUX + +## Add support for DESTDIR ## +patch Makefile $CWD/Makefile.patch +patch generate_install_sh.sh $CWD/generate_install_sh.sh.patch make make install DESTDIR=$PKG +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true + +mkdir -p $PKG/opt/ZEsarUX +mv $PKG/bin $PKG/opt/ZEsarUX/bin +mv $PKG/share $PKG/opt/ZEsarUX/share +mkdir -p $PKG/usr/share/pixmaps +cp $CWD/ZEsarUX.png $PKG/usr/share/pixmaps +mkdir -p $PKG/usr/share/applications +cp $CWD/zesarux.desktop $PKG/usr/share/applications + +## Symlinks ## +mkdir -p $PKG/usr/bin +( cd $PKG/usr/bin ; rm -rf zesarux ) +( cd $PKG/usr/bin ; ln -sf /opt/ZEsarUX/bin/zesarux zesarux ) + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |