diff options
-rw-r--r-- | games/adom/adom.SlackBuild | 35 | ||||
-rw-r--r-- | games/adom/adom.info | 12 |
2 files changed, 32 insertions, 15 deletions
diff --git a/games/adom/adom.SlackBuild b/games/adom/adom.SlackBuild index 118adb1602c37..9396f3cdea279 100644 --- a/games/adom/adom.SlackBuild +++ b/games/adom/adom.SlackBuild @@ -1,29 +1,47 @@ #!/bin/sh -# Slackware packager script for ADOM +# Slackware package script for ADOM # Written by pyllyukko - pyllyukko AT maimed dot org # # ADOM ships as a binary, so this script just wraps it up # in a clean .tgz package, ready to be installed. PRGNAM=adom -VERSION=${VERSION:-1.1.1} +VERSION=${VERSION:-1.2.0_pre5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -ARCH=i386 + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ "$ARCH" = "i486" ]; then + ARCHBITS=32 +elif [ "$ARCH" = "i686" ]; then + ARCHBITS=32 +elif [ "$ARCH" = "x86_64" ]; then + ARCHBITS=64 +else + echo "error: unsupported architecture!" 1>&2 + exit 1 +fi + set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM -tar xvf $CWD/$PRGNAM-${VERSION//./}-elf.tar.gz +tar xvf $CWD/${PRGNAM}_linux_debian_${ARCHBITS}_${VERSION}.tar.gz cd $PRGNAM chown -R root:root . find . \ @@ -32,13 +50,12 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -mkdir -pv ${PKG}/usr/games -cp -v adom ${PKG}/usr/games +install -m 0755 -D $PRGNAM $PKG/usr/games/$PRGNAM mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - adomfaq.txt manual.doc readme.1st \ - $PKG/usr/doc/$PRGNAM-$VERSION +#cp -a \ +# adomfaq.txt manual.doc readme.1st \ +# $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild # Copy the slack-desc into ./install diff --git a/games/adom/adom.info b/games/adom/adom.info index f15ae2e0d51dd..5e58806175295 100644 --- a/games/adom/adom.info +++ b/games/adom/adom.info @@ -1,10 +1,10 @@ PRGNAM="adom" -VERSION="1.1.1" -HOMEPAGE="http://www.adom.de/" -DOWNLOAD="http://www.adom.de/adom/download/linux/adom-111-elf.tar.gz" -MD5SUM="801484ba7c7c03b3b999365bc45db053" -DOWNLOAD_x86_64="UNSUPPORTED" -MD5SUM_x86_64="" +VERSION="1.2.0_pre5" +HOMEPAGE="http://www.ancientdomainsofmystery.com/" +DOWNLOAD="http://www.ancardia.com/download/adom_linux_debian_32_1.2.0_pre5.tar.gz" +MD5SUM="64f0a25518d9ede470353c7ff695ebbd" +DOWNLOAD_x86_64="http://www.ancardia.com/download/adom_linux_debian_64_1.2.0_pre5.tar.gz" +MD5SUM_x86_64="61bfc5064badad8fc02ecf288bc41ad6" REQUIRES="" MAINTAINER="pyllyukko" EMAIL="pyllyukko AT maimed dot org" |