diff options
author | Petar Petrov <ppetrov@paju.oulu.fi> | 2011-09-23 20:49:15 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-09-23 20:49:15 -0300 |
commit | cefcaa9c9476df3a913ca19d82e6728f843e3a69 (patch) | |
tree | 66778b389e23b01c47d55b5e0f928494c3767ad8 /games/digger | |
parent | 9f96605167b7c173129e1ecf7a566d183e822c8c (diff) |
games/digger: Added (Digger remastered!)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'games/digger')
-rw-r--r-- | games/digger/README | 14 | ||||
-rw-r--r-- | games/digger/digger.SlackBuild | 80 | ||||
-rw-r--r-- | games/digger/digger.desktop | 7 | ||||
-rw-r--r-- | games/digger/digger.info | 10 | ||||
-rw-r--r-- | games/digger/digger.png | bin | 0 -> 4400 bytes | |||
-rw-r--r-- | games/digger/doinst.sh | 3 | ||||
-rw-r--r-- | games/digger/slack-desc | 19 |
7 files changed, 133 insertions, 0 deletions
diff --git a/games/digger/README b/games/digger/README new file mode 100644 index 0000000000000..77ff37280f7fc --- /dev/null +++ b/games/digger/README @@ -0,0 +1,14 @@ +Digger was originally created by Windmill software in 1983 and +released as a copy-protected, bootable 5.25" floppy disk for the IBM +PC. As it requires a genuine CGA card, it didn't work on modern PCs. + +Digger Remastered runs on all PCs with CGA or better and plays just +like the original. It also has many new features, including: + +- Exit button +- Optional VGA graphics +- Recording and playback +- Real time speed control +- Keyboard redefinition +- Gauntlet mode +- Two player simultaneous mode diff --git a/games/digger/digger.SlackBuild b/games/digger/digger.SlackBuild new file mode 100644 index 0000000000000..4e311773705ca --- /dev/null +++ b/games/digger/digger.SlackBuild @@ -0,0 +1,80 @@ +#!/bin/sh + +# Slackware build script for digger +# Written by Petar Petrov, <ppetrov@paju.oulu.fi> and +# hereby submitted to the public domain + +# THIS SLACKBUILD IS DISTRIBUTETD IN THE HOPE OF BEING +# USEFUL BUT WITHOUT ANY WARRANTY. THE AUTHOR IS _NOT_ +# RESPONSIBLE FOR ANY DAMAGE OR DATA LOSS CAUSED BY IT. + +PRGNAM=digger +VERSION=${VERSION:-20020314} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +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 + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ + make -f Makefile.sdl + +install -D -m755 digger $PKG/usr/games/digger + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a digger.txt $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/usr/share/{applications,pixmaps} +cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications +cp $CWD/$PRGNAM.png $PKG/usr/share/pixmaps + +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/digger/digger.desktop b/games/digger/digger.desktop new file mode 100644 index 0000000000000..e8aea20c3cd5a --- /dev/null +++ b/games/digger/digger.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Categories=Game; +Exec=digger +Icon=digger.png +Name=Digger +StartupNotify=false +Type=Application diff --git a/games/digger/digger.info b/games/digger/digger.info new file mode 100644 index 0000000000000..0dcd086c7e5a6 --- /dev/null +++ b/games/digger/digger.info @@ -0,0 +1,10 @@ +PRGNAM="digger" +VERSION="20020314" +HOMEPAGE="http://www.digger.org/" +DOWNLOAD="http://www.digger.org/digger-20020314.tar.gz" +MD5SUM="a16e90a49ed8ea90099b254d3ef5edfa" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Petar Petrov" +EMAIL="ppetrov@paju.oulu.fi" +APPROVED="Niels Horn" diff --git a/games/digger/digger.png b/games/digger/digger.png Binary files differnew file mode 100644 index 0000000000000..e27110f4399a6 --- /dev/null +++ b/games/digger/digger.png diff --git a/games/digger/doinst.sh b/games/digger/doinst.sh new file mode 100644 index 0000000000000..5fb28930db0b9 --- /dev/null +++ b/games/digger/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/games/digger/slack-desc b/games/digger/slack-desc new file mode 100644 index 0000000000000..826e8913fdb3e --- /dev/null +++ b/games/digger/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +digger: digger (Digger remastered!) +digger: +digger: Digger was originally created by Windmill software in 1983. +digger: Digger Remastered runs on all PCs with CGA or better and plays just +digger: like the original. It also has many new features. +digger: +digger: +digger: +digger: +digger: +digger:
\ No newline at end of file |