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 | |
parent | 4b56a5344508e8530736c64ad4214b112f6aebb6 (diff) |
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')
-rw-r--r-- | games/ZEsarUX/Makefile.patch | 11 | ||||
-rw-r--r-- | games/ZEsarUX/README | 2 | ||||
-rw-r--r-- | games/ZEsarUX/ZEsarUX.SlackBuild | 36 | ||||
-rw-r--r-- | games/ZEsarUX/ZEsarUX.info | 8 | ||||
-rw-r--r-- | games/ZEsarUX/ZEsarUX.png | bin | 0 -> 473 bytes | |||
-rw-r--r-- | games/ZEsarUX/generate_install_sh.sh.patch | 11 | ||||
-rw-r--r-- | games/ZEsarUX/slack-desc | 2 | ||||
-rw-r--r-- | games/ZEsarUX/zesarux.desktop | 8 |
8 files changed, 63 insertions, 15 deletions
diff --git a/games/ZEsarUX/Makefile.patch b/games/ZEsarUX/Makefile.patch new file mode 100644 index 000000000000..d8911f9691d3 --- /dev/null +++ b/games/ZEsarUX/Makefile.patch @@ -0,0 +1,11 @@ +--- Makefile 2022-04-26 21:26:23.764520826 +0100 ++++ Makefile.new 2022-04-26 21:26:59.049523269 +0100 +@@ -541,7 +541,7 @@ + + + install: all +- ./generate_install_sh.sh ++ ./generate_install_sh.sh $(DESTDIR) + ./install.sh + + #utilities: $(UTILITIES) diff --git a/games/ZEsarUX/README b/games/ZEsarUX/README index b3129b9629cc..e7e79030cef1 100644 --- a/games/ZEsarUX/README +++ b/games/ZEsarUX/README @@ -18,4 +18,4 @@ ZEsarUX source code and binaries are distributed under GNU GPL license. ZEsarUX also includes third-party roms, media, programs and games NOT covered by this license -This package installs to /opt/zesarux +This package installs to /opt/ZEsarUX diff --git a/games/ZEsarUX/ZEsarUX.SlackBuild b/games/ZEsarUX/ZEsarUX.SlackBuild index e64ad44258f4..55447bd822fb 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 diff --git a/games/ZEsarUX/ZEsarUX.info b/games/ZEsarUX/ZEsarUX.info index d659e27d4c87..a1661c2b34ce 100644 --- a/games/ZEsarUX/ZEsarUX.info +++ b/games/ZEsarUX/ZEsarUX.info @@ -1,8 +1,8 @@ PRGNAM="ZEsarUX" -VERSION="6.0" -HOMEPAGE="https://sourceforge.net/projects/zesarux" -DOWNLOAD="http://ponce.cc/slackware/sources/repo/ZEsarUX_src-6.0.tar.gz" -MD5SUM="a92d0a7cc38166e84a1f32a48c4f8c8f" +VERSION="10.0" +HOMEPAGE="https://github.com/chernandezba/zesarux/releases/tag/ZEsarUX-10.0" +DOWNLOAD="https://github.com/chernandezba/zesarux/releases/download/ZEsarUX-10.0/ZEsarUX_src-10.0.tar.gz" +MD5SUM="1791b8eb68cf69264ecfb9de5c5ec494" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/games/ZEsarUX/ZEsarUX.png b/games/ZEsarUX/ZEsarUX.png Binary files differnew file mode 100644 index 000000000000..79ea8e1efbf5 --- /dev/null +++ b/games/ZEsarUX/ZEsarUX.png diff --git a/games/ZEsarUX/generate_install_sh.sh.patch b/games/ZEsarUX/generate_install_sh.sh.patch new file mode 100644 index 000000000000..38cfe5c728b3 --- /dev/null +++ b/games/ZEsarUX/generate_install_sh.sh.patch @@ -0,0 +1,11 @@ +--- generate_install_sh.sh 2021-09-13 19:30:44.000000000 +0100 ++++ generate_install_sh.sh.new 2022-04-26 21:25:46.422518240 +0100 +@@ -1,7 +1,7 @@ + #!/bin/bash + + +-INSTALLPREFIX=`cat compileoptions.h |grep INSTALL_PREFIX|cut -d '"' -f2` ++INSTALLPREFIX=$1 + + + cat > install.sh << _EOF diff --git a/games/ZEsarUX/slack-desc b/games/ZEsarUX/slack-desc index c5be5d6098a7..9de6c2439371 100644 --- a/games/ZEsarUX/slack-desc +++ b/games/ZEsarUX/slack-desc @@ -6,7 +6,7 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -ZEsarUX: ZEsarUX (Machines Emulator) +ZEsarUX: ZEsarUX (retro machines emulator) ZEsarUX: ZEsarUX: ZEsarUX is a ZX Machines Emulator for Unix, including all the ZEsarUX: Sinclair computers: MK14, ZX80, ZX81, ZX Spectrum, QL, Z88 and diff --git a/games/ZEsarUX/zesarux.desktop b/games/ZEsarUX/zesarux.desktop new file mode 100644 index 000000000000..9cab60eab97e --- /dev/null +++ b/games/ZEsarUX/zesarux.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=ZEsarUX +Comment=ZX Machines Emulator +Exec=/opt/ZEsarUX/bin/zesarux +Icon=/usr/share/pixmaps/ZEsarUX.png +Terminal=false +Type=Application + |