diff options
author | pyllyukko <pyllyukko AT maimed dot org> | 2015-10-25 08:28:43 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-10-25 10:04:50 +0700 |
commit | ad9e87a9db2eafb5eb4b93fc1d4340967d21a8fa (patch) | |
tree | 9ee2164537ff30bd2d21a42a3261ee22cc40f05d /games/adom | |
parent | e658f6c341e1e6c67af5166715a18530bb620ef3 (diff) |
games/adom: Updated for version r60.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/adom')
-rw-r--r-- | games/adom/adom.SlackBuild | 13 | ||||
-rw-r--r-- | games/adom/adom.info | 10 | ||||
-rw-r--r-- | games/adom/adom_ds.cfg | 1 | ||||
-rw-r--r-- | games/adom/doinst.sh | 15 |
4 files changed, 31 insertions, 8 deletions
diff --git a/games/adom/adom.SlackBuild b/games/adom/adom.SlackBuild index 3698e2926f4f..9bd43b75b947 100644 --- a/games/adom/adom.SlackBuild +++ b/games/adom/adom.SlackBuild @@ -7,7 +7,7 @@ # in a clean .tgz package, ready to be installed. PRGNAM=adom -VERSION=${VERSION:-1.2.0_pre23} +VERSION=${VERSION:-r60} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -41,7 +41,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM -tar xvf $CWD/${PRGNAM}_linux_debian_${ARCHBITS}_${VERSION}.tar.gz +tar xvf $CWD/${PRGNAM}_linux_debian_${ARCHBITS}_${VERSION}_pub.tar.gz cd $PRGNAM chown -R root:root . find -L . \ @@ -50,7 +50,13 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -install -m 0755 -D $PRGNAM $PKG/usr/games/$PRGNAM +install -m 2755 -D -g games $PRGNAM $PKG/usr/games/$PRGNAM +install -m 0644 -D ${CWD}/adom_ds.cfg ${PKG}/etc/adom_ds.cfg.new +install -m 0775 -D -g games -d ${PKG}/var/lib/adom +# we create the HISCORE file here, so that it's not created and owned by the first user to run adom. +touch ${PKG}/var/lib/adom/HISCORE.new +chown -c root:games ${PKG}/var/lib/adom/HISCORE.new +chmod -c 664 ${PKG}/var/lib/adom/HISCORE.new mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a docs/{adomfaq.txt,credits.txt,manual.txt,readme1st.txt} licenses \ @@ -59,6 +65,7 @@ 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.${PKGTYPE:-tgz} diff --git a/games/adom/adom.info b/games/adom/adom.info index 3112316ed26e..b9a482bcfdaa 100644 --- a/games/adom/adom.info +++ b/games/adom/adom.info @@ -1,10 +1,10 @@ PRGNAM="adom" -VERSION="1.2.0_pre23" +VERSION="r60" HOMEPAGE="http://www.ancientdomainsofmystery.com/" -DOWNLOAD="http://www.ancardia.com/download/old/1.2.0_pre23/adom_linux_debian_32_1.2.0_pre23.tar.gz" -MD5SUM="8ee33a8eb47eaeb633f04d1cf027ecb7" -DOWNLOAD_x86_64="http://www.ancardia.com/download/old/1.2.0_pre23/adom_linux_debian_64_1.2.0_pre23.tar.gz" -MD5SUM_x86_64="1c371b0ea4ff5579bed0dd10bd8ec795" +DOWNLOAD="http://www.ancardia.com/download/adom_linux_debian_32_r60_pub.tar.gz" +MD5SUM="68d94adaee52cf5739bd2a3ecbbf489a" +DOWNLOAD_x86_64="http://www.ancardia.com/download/adom_linux_debian_64_r60_pub.tar.gz" +MD5SUM_x86_64="4bbd8748509f5f407d9f3a9289763fc8" REQUIRES="" MAINTAINER="pyllyukko" EMAIL="pyllyukko AT maimed dot org" diff --git a/games/adom/adom_ds.cfg b/games/adom/adom_ds.cfg new file mode 100644 index 000000000000..41f3a8226da3 --- /dev/null +++ b/games/adom/adom_ds.cfg @@ -0,0 +1 @@ +/var/lib/adom diff --git a/games/adom/doinst.sh b/games/adom/doinst.sh new file mode 100644 index 000000000000..ef11d52bc324 --- /dev/null +++ b/games/adom/doinst.sh @@ -0,0 +1,15 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ -s "$OLD" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/adom_ds.cfg.new +config var/lib/adom/HISCORE.new |