summaryrefslogtreecommitdiffstats
path: root/games/pcgen/pcgen.SlackBuild
diff options
context:
space:
mode:
author klaatu <klaatu@member.fsf.org>2022-03-06 15:47:36 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-07 08:38:02 +0700
commitc249864ba5785fb7ef99f11623da4972196ffa37 (patch)
treebef9199f7aa4a2f380dbf8707519030b912c9b00 /games/pcgen/pcgen.SlackBuild
parentcc8b3ecc927ab32f537332c500d814b357554d65 (diff)
downloadslackbuilds-c249864ba5785fb7ef99f11623da4972196ffa37.tar.gz
slackbuilds-c249864ba5785fb7ef99f11623da4972196ffa37.tar.xz
games/pcgen: Updated for version 6.09.05.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/pcgen/pcgen.SlackBuild')
-rw-r--r--games/pcgen/pcgen.SlackBuild15
1 files changed, 8 insertions, 7 deletions
diff --git a/games/pcgen/pcgen.SlackBuild b/games/pcgen/pcgen.SlackBuild
index b3f6e31266..8482363d8c 100644
--- a/games/pcgen/pcgen.SlackBuild
+++ b/games/pcgen/pcgen.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
# Slackware build script for pcgen
-# Copyright 2017 klaatu @ member.fsf.org
+# Copyright 2017-22 klaatu @ member.fsf.org
#
# GNU All-Permissive License
# Copying and distribution of this file, with or without modification,
@@ -11,7 +11,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pcgen
-VERSION=${VERSION:-"6.06.01"}
+VERSION=${VERSION:-"6.09.05"}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -37,8 +37,9 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir $PRGNAM-$VERSION
-unzip $CWD/"$PRGNAM"-"$VERSION"-full.zip -d $PRGNAM-$VERSION
+unzip $CWD/image-linux-x64.zip -d $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -47,11 +48,11 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p $PKG/opt/
-mv $PRGNAM $PKG/opt/$PRGNAM
+mv $PRGNAM-linux-x64 $PKG/opt/$PRGNAM
-# patch for launcher
-tr -d '\r' < $PKG/opt/$PRGNAM/$PRGNAM.sh > $PKG/opt/$PRGNAM/$PRGNAM-launch.sh
-mv $PKG/opt/$PRGNAM/$PRGNAM-launch.sh $PKG/opt/$PRGNAM/$PRGNAM.sh
+# fix launcher script
+cd $PKG/opt/$PRGNAM
+patch < $CWD/pcgen.patch
# desktop file, added to SlackBuild for convenience
mkdir -p $PKG/usr/share/applications/