diff options
Diffstat (limited to 'games/pacman-arena')
-rw-r--r-- | games/pacman-arena/README | 4 | ||||
-rw-r--r-- | games/pacman-arena/doinst.sh | 3 | ||||
-rw-r--r-- | games/pacman-arena/pacman-arena.SlackBuild | 108 | ||||
-rw-r--r-- | games/pacman-arena/pacman-arena.desktop | 8 | ||||
-rw-r--r-- | games/pacman-arena/pacman-arena.info | 12 | ||||
-rw-r--r-- | games/pacman-arena/pacman-arena.png | bin | 0 -> 1898 bytes | |||
-rw-r--r-- | games/pacman-arena/slack-desc | 19 |
7 files changed, 154 insertions, 0 deletions
diff --git a/games/pacman-arena/README b/games/pacman-arena/README new file mode 100644 index 0000000000..a3763ca1a3 --- /dev/null +++ b/games/pacman-arena/README @@ -0,0 +1,4 @@ +pacman-arena (3D maze game) + +Pacman Arena is a Pacman clone in full 3D with a few surprises. Rockets, +bombs and explosions abound. diff --git a/games/pacman-arena/doinst.sh b/games/pacman-arena/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/games/pacman-arena/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/pacman-arena/pacman-arena.SlackBuild b/games/pacman-arena/pacman-arena.SlackBuild new file mode 100644 index 0000000000..6a7f2fc434 --- /dev/null +++ b/games/pacman-arena/pacman-arena.SlackBuild @@ -0,0 +1,108 @@ +#!/bin/sh + +# Slackware build script for pacman-arena + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +PRGNAM=pacman-arena +VERSION=${VERSION:-0.15} +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 + +SRCNAM=pacman + +# This will likely never change +DATAFILE=pacman-data-0.0.zip + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $SRCNAM +unzip $CWD/$DATAFILE +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +autoreconf -if + +# I know we're supposed to use LIBS="-lm", but it doesn't work here. +LDFLAGS="-lm" \ +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +# fix up path for data files +sed -i -e "s,share/pacman,share/games/$PRGNAM," Makefile + +make + +# make install is too annoying to use, it's less code to install without. +mkdir -p \ + $PKG/usr/games \ + $PKG/usr/share/games/$PRGNAM/sfx \ + $PKG/usr/share/games/$PRGNAM/gfx +install -s -m0755 $SRCNAM $PKG/usr/games/$PRGNAM +install -m0644 sfx/* $PKG/usr/share/games/$PRGNAM/sfx +install -m0644 gfx/* $PKG/usr/share/games/$PRGNAM/gfx + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING README $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +# icon is a 32x32 chunk of gfx/pacman_arena1.tga edited with gimp. +mkdir -p $PKG/usr/share/pixmaps +cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png + +# .desktop written for this build +mkdir -p $PKG/usr/share/applications +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop + +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/pacman-arena/pacman-arena.desktop b/games/pacman-arena/pacman-arena.desktop new file mode 100644 index 0000000000..8b87e9b66f --- /dev/null +++ b/games/pacman-arena/pacman-arena.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Pac-Man Arena +Comment=3D Pac-Man with explosions +Exec=pacman-arena +Icon=pacman-arena +Terminal=false +Type=Application +Categories=Game;ArcadeGame; diff --git a/games/pacman-arena/pacman-arena.info b/games/pacman-arena/pacman-arena.info new file mode 100644 index 0000000000..a2cebf47e5 --- /dev/null +++ b/games/pacman-arena/pacman-arena.info @@ -0,0 +1,12 @@ +PRGNAM="pacman-arena" +VERSION="0.15" +HOMEPAGE="http://pacmanarena.sourceforge.net/" +DOWNLOAD="http://downloads.sourceforge.net/project/pacmanarena/pacmanarena/v0.0/pacman-arena-0.15.tar.bz2 \ + http://downloads.sourceforge.net/project/pacmanarena/pacmanarena/v0.0/pacman-data-0.0.zip" +MD5SUM="4ff7e55810838fd81f966b76340b0103 \ + 876b7bf02bbe26aab47c5aeee26b2be6" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/games/pacman-arena/pacman-arena.png b/games/pacman-arena/pacman-arena.png Binary files differnew file mode 100644 index 0000000000..ac20564914 --- /dev/null +++ b/games/pacman-arena/pacman-arena.png diff --git a/games/pacman-arena/slack-desc b/games/pacman-arena/slack-desc new file mode 100644 index 0000000000..809e054666 --- /dev/null +++ b/games/pacman-arena/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +pacman-arena: pacman-arena (3D maze game) +pacman-arena: +pacman-arena: Pacman Arena is a Pacman clone in full 3D with a few +pacman-arena: surprises. Rockets, bombs and explosions abound. +pacman-arena: +pacman-arena: +pacman-arena: +pacman-arena: +pacman-arena: +pacman-arena: +pacman-arena: |