mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
games/ZEsarUX: Updated for version 10.0.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
4b56a53445
commit
df1be9c384
8 changed files with 63 additions and 15 deletions
11
games/ZEsarUX/Makefile.patch
Normal file
11
games/ZEsarUX/Makefile.patch
Normal file
|
@ -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)
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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=""
|
||||
|
|
BIN
games/ZEsarUX/ZEsarUX.png
Normal file
BIN
games/ZEsarUX/ZEsarUX.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 473 B |
11
games/ZEsarUX/generate_install_sh.sh.patch
Normal file
11
games/ZEsarUX/generate_install_sh.sh.patch
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
8
games/ZEsarUX/zesarux.desktop
Normal file
8
games/ZEsarUX/zesarux.desktop
Normal file
|
@ -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
|
||||
|
Loading…
Reference in a new issue