summaryrefslogtreecommitdiff
path: root/games/nuvie/nuvie.SlackBuild
diff options
context:
space:
mode:
authorHunter Sezen <ovariegata@yahoo.com>2018-02-21 20:08:47 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2018-02-21 20:08:47 +0000
commit5f47e7276db98adc791c0d66e6b1d6970b7c1f6d (patch)
treefa42575e8be849c1cbb65438e0960c85b531e4b6 /games/nuvie/nuvie.SlackBuild
parent472f404c944b6e77842a0ce02a8a6214436cf3a9 (diff)
downloadslackbuilds-5f47e7276db98adc791c0d66e6b1d6970b7c1f6d.tar.gz
games/nuvie: Updated for version 2018.01.13_1fa4044.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/nuvie/nuvie.SlackBuild')
-rw-r--r--games/nuvie/nuvie.SlackBuild22
1 files changed, 13 insertions, 9 deletions
diff --git a/games/nuvie/nuvie.SlackBuild b/games/nuvie/nuvie.SlackBuild
index 79af657479..5faed72922 100644
--- a/games/nuvie/nuvie.SlackBuild
+++ b/games/nuvie/nuvie.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for nuvie
-# Copyright 2016 Hunter Sezen California, USA
+# Copyright 2016, 2018 Hunter Sezen California, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=nuvie
-VERSION=${VERSION:-0.5}
+VERSION=${VERSION:-2018.01.13_1fa4044}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +40,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"
@@ -54,13 +54,13 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tgz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -69,17 +69,21 @@ 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 {} \;
+./autogen.sh
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --bindir=/usr/games \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
# Copy missing data files
-cp -aR data/{images,maps,scripts} $PKG/usr/share/$PRGNAM
+for i in images maps scripts; do
+ cp -a data/$i $PKG/usr/share/$PRGNAM
+done
# Install nuvie.cfg
install -Dm0644 $PRGNAM.cfg.sample $PKG/usr/share/$PRGNAM/$PRGNAM.cfg.new
@@ -89,7 +93,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING README TODO $PRGNAM.cfg.sample $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING README $PRGNAM.cfg.sample $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install