diff options
author | Antonio Leal <antonioleal@yahoo.com> | 2022-04-30 00:22:04 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-30 13:51:59 +0700 |
commit | df1be9c384a3ecf780f052ba178b7b105d8efd32 (patch) | |
tree | b898745b70b5b0cb436a686a7d1e07a640a7e851 /games/ZEsarUX/ZEsarUX.SlackBuild | |
parent | 4b56a5344508e8530736c64ad4214b112f6aebb6 (diff) | |
download | slackbuilds-df1be9c384a3ecf780f052ba178b7b105d8efd32.tar.gz |
games/ZEsarUX: Updated for version 10.0.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 e64ad44258..55447bd822 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 |