diff options
Diffstat (limited to 'games/wmquake/wmquake.SlackBuild')
-rw-r--r-- | games/wmquake/wmquake.SlackBuild | 51 |
1 files changed, 34 insertions, 17 deletions
diff --git a/games/wmquake/wmquake.SlackBuild b/games/wmquake/wmquake.SlackBuild index e31c4cf16e24d..fec7f4c9cb057 100644 --- a/games/wmquake/wmquake.SlackBuild +++ b/games/wmquake/wmquake.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for wmquake # -# Copyright 2015 Gethyn ThomasQuail <gethyn@bloodbathsoftworks.com> +# Copyright 2015 Gethyn ThomasQuail <email removed> # All rights reserved. # # Based on: @@ -25,15 +25,26 @@ # 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 <yalhcru@gmail.com> + +# 20160818 bkw: +# - take over maintenance +# - BUILD=2 +# - i486 => i586 +# - document the fact that this doesn't work on x86_64 +# - actually use SLKCFLAGS +# - install binary stripped +# - install binary in /usr/libexec, *not /usr/share*! Dammit! +# - fix wrapper script to run in user's homedir + PRGNAM=wmquake VERSION=${VERSION:-1.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} -GAMDIR=usr/share/games/quake/wmquake if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -44,8 +55,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -53,9 +64,21 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +cat <<EOF + WARNING: $PRGNAM is known to segfault on $ARCH. Press ^C within + 10 seconds to abort this build, or press Enter (or wait 10 sec) + to continue. +EOF + read -t 10 junk else SLKCFLAGS="-O2" LIBDIRSUFFIX="" +cat <<EOF + WARNING: $PRGNAM is untested on $ARCH and probably won't work. Press ^C + within 10 seconds to abort this build, or press Enter (or wait 10 sec) + to continue. +EOF + read -t 10 junk fi set -e @@ -73,20 +96,14 @@ 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 {} \; -make - -# Copies over compiled binary -install -D -m 0755 $PRGNAM $PKG/$GAMDIR/$PRGNAM - -# Desktop and launcher related stuff -install -D -m 0755 $CWD/$PRGNAM $PKG/usr/games/$PRGNAM +make CFLAGS="$SLKCFLAGS" -# Make it so the games group can access the folder -chgrp games $PKG/$GAMDIR -chmod 774 $PKG/$GAMDIR +mkdir -p $PKG/usr/libexec/$PRGNAM $PKG/usr/games +install -s -m0755 $PRGNAM $PKG/usr/libexec/$PRGNAM +install -m0755 $CWD/$PRGNAM.sh $PKG/usr/games/$PRGNAM mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README.INSTALL README.source README.wmquake $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |