games/enigma: New maintainer, FHS fix.
Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
parent
07100a21b8
commit
33f56ee915
|
@ -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
|
||||
|
|
|
@ -6,5 +6,5 @@ MD5SUM="a54ee9ae40dae781560a3c2b1ce8f45d"
|
|||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Ryan P.C. McQuen"
|
||||
EMAIL="ryanpcmcquen@member.fsf.org"
|
||||
MAINTAINER="B. Watson"
|
||||
EMAIL="yalhcru@gmail.com"
|
||||
|
|
Loading…
Reference in New Issue