From af4e4958bb8619b03dc90befb827fd8e48971ac6 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 21 Feb 2022 12:51:54 -0500 Subject: games/vms-empire: Fix 15.0 build. Signed-off-by: B. Watson --- games/vms-empire/vms-empire.SlackBuild | 35 ++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) (limited to 'games') diff --git a/games/vms-empire/vms-empire.SlackBuild b/games/vms-empire/vms-empire.SlackBuild index 2a598a05f42f..643d4e94015f 100644 --- a/games/vms-empire/vms-empire.SlackBuild +++ b/games/vms-empire/vms-empire.SlackBuild @@ -22,11 +22,17 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220221 bkw: Modified by SlackBuilds.org, BUILD=2: +# - fix build on 15.0. +# - binary in /usr/games. +# - symlink so man page name matches binary name. +# - fix .desktop file (abs paths). + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=vms-empire VERSION=${VERSION:-1.14} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +44,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 @@ -75,27 +78,27 @@ cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -make + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ -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 +make DEBUG="$SLKCFLAGS -fcommon" -mkdir -p $PKG/usr/bin -install -D -m0755 $PRGNAM $PKG/usr/bin/$PRGNAM +mkdir -p $PKG/usr/games +install -s -m0755 $PRGNAM $PKG/usr/games/$PRGNAM mkdir -p $PKG/usr/share/applications -install -D -m644 $PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop +sed -e '/^Icon/s,=.*,=/usr/share/pixmaps/vms-empire.png,' \ + -e '/^Exec/s,=,=/usr/games/,' \ + < $PRGNAM.desktop \ + > $PKG/usr/share/applications/$PRGNAM.desktop mkdir -p $PKG/usr/share/pixmaps/ -install -D -m644 $PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png +install -m644 $PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png mkdir -p $PKG/usr/man/man6 -gzip -9 empire.6 -install -D -m0644 empire.6.gz $PKG/usr/man/man6/empire.6.gz +gzip -9c < empire.6 > $PKG/usr/man/man6/empire.6.gz +ln -s empire.6.gz $PKG/usr/man/man6/$PRGNAM.6.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS BUGS COPYING HACKING NEWS README $PKG/usr/doc/$PRGNAM-$VERSION -- cgit v1.2.3