aboutsummaryrefslogtreecommitdiff
path: root/games/enigma/enigma.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/enigma/enigma.SlackBuild')
-rw-r--r--games/enigma/enigma.SlackBuild26
1 files changed, 18 insertions, 8 deletions
diff --git a/games/enigma/enigma.SlackBuild b/games/enigma/enigma.SlackBuild
index 75aad15f4876..22fc6e659ab3 100644
--- a/games/enigma/enigma.SlackBuild
+++ b/games/enigma/enigma.SlackBuild
@@ -2,8 +2,11 @@
# Slackware build script for enigma
+# Formerly maintained by:
# Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org
+# Now maintained by B. Watson (yalhcru@gmail.com)
+
# Copyright 2010 Binh Nguyen <binhvng@gmail.com>
# All rights reserved.
#
@@ -24,6 +27,11 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20170309 bkw:
+# - take over maintenance
+# - i486 => i586
+# - binary in /usr/games
+
PRGNAM=enigma
VERSION=${VERSION:-1.04}
BUILD=${BUILD:-1}
@@ -31,7 +39,7 @@ 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
@@ -42,8 +50,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"
@@ -75,6 +83,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --bindir=/usr/games \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var/games \
@@ -82,12 +91,13 @@ CXXFLAGS="$SLKCFLAGS" \
--infodir=/usr/info \
--build=$ARCH-slackware-linux
-mkdir -p $PKG/usr/bin
+mkdir -p $PKG/usr/games
make
-make install prefix=$PKG/usr localstatedir=$PKG/var/games
-
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+make install \
+ prefix=$PKG/usr \
+ localstatedir=$PKG/var/games \
+ bindir=$PKG/usr/games
+strip $PKG/usr/games/$PRGNAM
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGELOG LICENCE README $PKG/usr/doc/$PRGNAM-$VERSION