diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-11 19:44:43 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 19:44:43 +0200 |
commit | e3986f187e454d93409fa3cf2b2f8f7e0be4747d (patch) | |
tree | 1d2d7ce0315843a4b71f10168ca11ace5a147e69 /games/tmw/tmw.SlackBuild | |
parent | 31f288a0233058ebfa21f6799a269a1d8f6974e1 (diff) | |
download | slackbuilds-e3986f187e454d93409fa3cf2b2f8f7e0be4747d.tar.gz |
games/tmw: Updated for version 0.0.23
Diffstat (limited to 'games/tmw/tmw.SlackBuild')
-rw-r--r-- | games/tmw/tmw.SlackBuild | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/games/tmw/tmw.SlackBuild b/games/tmw/tmw.SlackBuild index f402069081..911351fb98 100644 --- a/games/tmw/tmw.SlackBuild +++ b/games/tmw/tmw.SlackBuild @@ -2,13 +2,14 @@ # Slackware build script for The Mana World # Written by Erik Hanson erik@slackbuilds.org +# Modified for version 0.0.23 by ppr:kut <hmwiesinger@gmx.at> PRGNAM=tmw -VERSION=0.0.21 +VERSION=0.0.23 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -CWD=`pwd` +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -21,18 +22,19 @@ fi rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP +cd $TMP || exit 1 rm -rf $PRGNAM-$VERSION tar zxvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 -cd $PRGNAM-$VERSION +cd $PRGNAM-$VERSION || exit 1 chown -R root:root . -chown -R a-s,u+w,go-w+r . +chmod -R a-s,u+w,go-w+r . CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ + --mandir=/usr/man \ || exit 1 make || exit 1 @@ -43,14 +45,20 @@ make install DESTDIR=$PKG || exit 1 find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) +( 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 +) + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog NEWS README docs/FAQ.txt docs/HACKING.txt \ - docs/items.txt docs/packages.txt docs/progression.txt \ +cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README TODO docs/FAQ.txt \ + docs/HACKING.txt docs/items.txt docs/packages.txt docs/progression.txt \ $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 +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |