summaryrefslogtreecommitdiff
path: root/games/uqm/uqm.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/uqm/uqm.SlackBuild')
-rw-r--r--games/uqm/uqm.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/games/uqm/uqm.SlackBuild b/games/uqm/uqm.SlackBuild
index 2368c02359..1b571ec650 100644
--- a/games/uqm/uqm.SlackBuild
+++ b/games/uqm/uqm.SlackBuild
@@ -20,10 +20,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -89,7 +92,8 @@ chmod 0755 $PKG/usr/bin/$PRGNAM
mkdir -p $PKG/usr/share/$PRGNAM/content/packages/addons
cp content/version $PKG/usr/share/$PRGNAM/content
# Install the uqm content. Without this the binary is not useful.
-cat $CWD/$PRGNAM-$CONTVER-content.uqm > $PKG/usr/share/$PRGNAM/content/packages/$PRGNAM-$CONTVER-content.uqm
+cat $CWD/$PRGNAM-$CONTVER-content.uqm > \
+ $PKG/usr/share/$PRGNAM/content/packages/$PRGNAM-$CONTVER-content.uqm
mkdir -p $PKG/usr/man/man1
gzip -9c $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
@@ -103,4 +107,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}