diff options
author | B. Watson <yalhcru@gmail.com> | 2017-02-11 18:14:13 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-02-18 07:54:14 +0700 |
commit | 759c8362aa905b7e3619bb936e80168587487d91 (patch) | |
tree | 6258c3f9a90e948d5b52fdd502a58ec5e21543b1 /games/advancescan/advancescan.SlackBuild | |
parent | 6c67d663e56679d7cc6c4e018b37c8fe3f442062 (diff) | |
download | slackbuilds-759c8362aa905b7e3619bb936e80168587487d91.tar.gz |
games/advancescan: Updated for version 1.18, new maintainer.
Diffstat (limited to 'games/advancescan/advancescan.SlackBuild')
-rw-r--r-- | games/advancescan/advancescan.SlackBuild | 41 |
1 files changed, 26 insertions, 15 deletions
diff --git a/games/advancescan/advancescan.SlackBuild b/games/advancescan/advancescan.SlackBuild index 5a8a67aed7..a3a976c35f 100644 --- a/games/advancescan/advancescan.SlackBuild +++ b/games/advancescan/advancescan.SlackBuild @@ -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 - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +make install-strip DESTDIR=$PKG -( 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 |