aboutsummaryrefslogtreecommitdiff
path: root/games/ckmame
diff options
context:
space:
mode:
Diffstat (limited to 'games/ckmame')
-rw-r--r--games/ckmame/README3
-rw-r--r--games/ckmame/ckmame.SlackBuild80
-rw-r--r--games/ckmame/ckmame.info10
-rw-r--r--games/ckmame/slack-desc19
4 files changed, 112 insertions, 0 deletions
diff --git a/games/ckmame/README b/games/ckmame/README
new file mode 100644
index 0000000000000..e7326a0c11a0c
--- /dev/null
+++ b/games/ckmame/README
@@ -0,0 +1,3 @@
+A program to check ROM sets for MAME, the Multiple Arcade Machine Emulator. It
+tells you which ROM files are missing or have a wrong checksum, and can delete
+unknown and unused files from the ROM sets, and rename or move ROM files.
diff --git a/games/ckmame/ckmame.SlackBuild b/games/ckmame/ckmame.SlackBuild
new file mode 100644
index 0000000000000..82674b5a57bc9
--- /dev/null
+++ b/games/ckmame/ckmame.SlackBuild
@@ -0,0 +1,80 @@
+#!/bin/sh
+#
+# Slackware build script for ckmame
+#
+# Copyright 2010 Erik W. Hanson, Minneapolis, MN, USA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=ckmame
+VERSION=0.10
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
+set -eu
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --mandir=/usr/man/ \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
+
+sed -i -e "s#/share/doc/ckmame#/doc/$PRGNAM-$VERSION#" docs/Makefile
+
+make
+make install-strip DESTDIR=$PKG
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in `find $PKG/usr/man -type l` ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS INSTALL NEWS README THANKS TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/games/ckmame/ckmame.info b/games/ckmame/ckmame.info
new file mode 100644
index 0000000000000..4280775556344
--- /dev/null
+++ b/games/ckmame/ckmame.info
@@ -0,0 +1,10 @@
+PRGNAM="ckmame"
+VERSION="0.10"
+HOMEPAGE="http://nih.at/ckmame/"
+DOWNLOAD="http://nih.at/ckmame/ckmame-0.10.tar.bz2"
+MD5SUM="947eb593cff750c66d176ad9e0b81c4d"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Erik Hanson"
+EMAIL="erik@slackbuilds.org"
+APPROVED="michiel"
diff --git a/games/ckmame/slack-desc b/games/ckmame/slack-desc
new file mode 100644
index 0000000000000..0de698822d1bb
--- /dev/null
+++ b/games/ckmame/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----------------------------------------------------|
+ckmame: ckmame (check ROM sets for MAME)
+ckmame:
+ckmame: A program to check ROM sets for MAME, the Multiple Arcade Machine
+ckmame: Emulator. It tells you which ROM files are missing or have a wrong
+ckmame: checksum, and can delete unknown and unused files from the ROM
+ckmame: sets, and rename or move ROM files.
+ckmame:
+ckmame:
+ckmame:
+ckmame:
+ckmame: