diff options
Diffstat (limited to 'games/nexuiz/nexuiz.SlackBuild')
-rw-r--r-- | games/nexuiz/nexuiz.SlackBuild | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/games/nexuiz/nexuiz.SlackBuild b/games/nexuiz/nexuiz.SlackBuild index ec957362d1..ebb2164aa7 100644 --- a/games/nexuiz/nexuiz.SlackBuild +++ b/games/nexuiz/nexuiz.SlackBuild @@ -2,10 +2,7 @@ # Slackware build script for Nexuiz -# Now maintained by B. Watson <yalhcru@gmail.com>, please don't bother -# Chess with questions about this build (bother me instead) - -# Copyright 2008-2009 Chess Griffin <chess@chessgriffin.com> +# Copyright 2008-2009 Chess Griffin <email removed> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,11 +22,16 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Now maintained by B. Watson <urchlay@slackware.uk>, please don't bother +# Chess with questions about this build (bother me instead) + +# 20220505 bkw: BUILD=2, add missing SlackBuild to doc dir. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=nexuiz VERSION=${VERSION:-2.5.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -43,9 +45,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 @@ -56,16 +55,10 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" SRCARCH="686" elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" SRCARCH="686" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" SRCARCH="x86_64" fi @@ -83,11 +76,8 @@ unzip -o $CWD/nexuiz-$SRCVER.zip \ 'Nexuiz/Nexuiz.app/*' 'Nexuiz/extra/*' 'Nexuiz/sources/*' cd Nexuiz 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 \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ install -D -m 0644 $CWD/nexuiz-glx.desktop \ $PKG/usr/share/applications/nexuiz-glx.desktop @@ -98,6 +88,7 @@ mkdir -p $PKG/usr/share/pixmaps cp $CWD/*.png $PKG/usr/share/pixmaps mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cp -R ./Docs/* $PKG/usr/doc/$PRGNAM-$VERSION/ cp gpl.txt $PKG/usr/doc/$PRGNAM-$VERSION # Include server scripts as docs: |