games/adom: Updated for version r60.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
e658f6c341
commit
ad9e87a9db
|
@ -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}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
/var/lib/adom
|
|
@ -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
|
Loading…
Reference in New Issue