summaryrefslogtreecommitdiff
path: root/games/xskat/xskat.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/xskat/xskat.SlackBuild')
-rw-r--r--games/xskat/xskat.SlackBuild16
1 files changed, 12 insertions, 4 deletions
diff --git a/games/xskat/xskat.SlackBuild b/games/xskat/xskat.SlackBuild
index 2b8a920718..b83074ca92 100644
--- a/games/xskat/xskat.SlackBuild
+++ b/games/xskat/xskat.SlackBuild
@@ -38,10 +38,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
@@ -70,8 +73,10 @@ mkdir -p $PKG/usr/man/de/man1/
mv $PKG/usr/man/man1/xskat-de.1x $PKG/usr/man/de/man1/xskat.1x
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
# Compress man pages
@@ -82,11 +87,14 @@ mv $PKG/usr/man/man1/xskat-de.1x $PKG/usr/man/de/man1/xskat.1x
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a CHANGES CHANGES-de INSTALL INSTALL-de README README-de README.IRC README.IRC-de $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ CHANGES CHANGES-de INSTALL INSTALL-de README README-de \
+ README.IRC README.IRC-de \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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}