diff options
Diffstat (limited to 'games/pcgen/pcgen.SlackBuild')
-rw-r--r-- | games/pcgen/pcgen.SlackBuild | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/games/pcgen/pcgen.SlackBuild b/games/pcgen/pcgen.SlackBuild index b3f6e31266a08..8482363d8cc11 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/ |