games/advancescan: Updated for version 1.18, new maintainer.

This commit is contained in:
B. Watson 2017-02-11 18:14:13 -05:00 committed by Willy Sudiarto Raharjo
parent 6c67d663e5
commit 759c8362aa
2 changed files with 31 additions and 20 deletions

View File

@ -2,17 +2,28 @@
# Slackware build script for AdvanceSCAN
# Written by Pablo Santamaria (pablosantamaria@gmail.com)
# Originally written by Pablo Santamaria (email removed)
# Now maintained by B. Watson <yalhcru@gmail.com>. Original version
# had no license, modified version released under the WTFPL. See
# http://www.wtfpl.net/txt/copying/ for details.
# 20170211 bkw:
# - Take over maintenance
# - Update for v1.18
# - i486 => i586
# - Install man pages to section 6 since this is a game.
# - Install .txt docs without CRLF line endings.
# - Minor script cleanups.
PRGNAM=advancescan
VERSION=${VERSION:-1.14}
VERSION=${VERSION:-1.18}
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
@ -23,8 +34,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"
@ -59,22 +70,22 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var \
--mandir=/usr/man \
--bindir=/usr/games \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
make install-strip DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
# Binaries are installed stripped. Man pages are in the wrong section!
mv $PKG/usr/man/man1 $PKG/usr/man/man6
sed -i '/^\.TH.* 1$/s,1$,6,' $PKG/usr/man/man6/*.1
rename .1 .6 $PKG/usr/man/man6/*.1
gzip -9 $PKG/usr/man/man6/*.6
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING HISTORY INSTALL README advscan.rc.linux \
$PKG/usr/doc/$PRGNAM-$VERSION
rm doc/install.* # don't need compile instructions in a binary pkg
sed -i 's,\r,,' doc/*.txt
cp -a CO* doc/*.txt doc/*.html advscan.rc.linux $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View File

@ -1,10 +1,10 @@
PRGNAM="advancescan"
VERSION="1.14"
VERSION="1.18"
HOMEPAGE="http://advancemame.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/advancemame/advancescan-1.14.tar.gz"
MD5SUM="0686fe381d25f0b4bcffe946b9f7456f"
DOWNLOAD="https://github.com/amadvance/advancescan/releases/download/v1.18/advancescan-1.18.tar.gz"
MD5SUM="85d964fe0d34a5722ce923f7fbb8a115"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Pablo Santamaria"
EMAIL="pablosantamaria@gmail.com"
MAINTAINER="B. Watson"
EMAIL="yalhcru@gmail.com"