diff options
author | Pablo Santamaria <pablosantamaria@gmail.com> | 2010-05-13 00:58:12 +0200 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-13 00:58:12 +0200 |
commit | 944810459a183059ed1c10c7e2c27ee037ac9b44 (patch) | |
tree | ecc6c5dcf54ef5b56ddfff6331748fa5f164d1da | |
parent | 4351fb5d77a9f8d2ae13d2a3e03267fd1f4c5461 (diff) | |
download | slackbuilds-944810459a183059ed1c10c7e2c27ee037ac9b44.tar.gz |
games/sdlmame-data: Added to 13.0 repository
-rw-r--r-- | games/sdlmame-data/README | 4 | ||||
-rw-r--r-- | games/sdlmame-data/sdlmame-data.SlackBuild | 68 | ||||
-rw-r--r-- | games/sdlmame-data/sdlmame-data.info | 10 | ||||
-rw-r--r-- | games/sdlmame-data/slack-desc | 19 |
4 files changed, 101 insertions, 0 deletions
diff --git a/games/sdlmame-data/README b/games/sdlmame-data/README new file mode 100644 index 0000000000..3946f8d38f --- /dev/null +++ b/games/sdlmame-data/README @@ -0,0 +1,4 @@ +sdlmame-data contains data files for the sdlmame package. + +This requires sdlmame and p7zip. It is necessary to use a web browser to +download the Mameinfo zip. diff --git a/games/sdlmame-data/sdlmame-data.SlackBuild b/games/sdlmame-data/sdlmame-data.SlackBuild new file mode 100644 index 0000000000..95e4752391 --- /dev/null +++ b/games/sdlmame-data/sdlmame-data.SlackBuild @@ -0,0 +1,68 @@ +#!/bin/sh + +# Slackware build script for sdlmame data + +# Written by Pablo Santamaria (pablosantamaria@gmail.com) + +PRGNAM=sdlmame-data +VERSION=${VERSION:-0.136} +SRCVER=$( echo $VERSION | cut -d. -f2 ) +ARCH=noarch +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +SOURCE1="mamehistory$SRCVER.zip" +SOURCE2="Mameinfo0$SRCVER.zip" +SOURCE3="ctrlr.rar" +SOURCE4="catveren.zip" +SOURCE5="nplayers0$SRCVER.zip" +SOURCE6="cheat0$SRCVER.zip" + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +mkdir $PRGNAM-$VERSION +cd $PRGNAM-$VERSION + +# Extract dat file +unzip $CWD/$SOURCE1 +unzip $CWD/$SOURCE2 +7z x Mameinfo0$SRCVER.exe +mv docs mameinfo +unzip -a $CWD/$SOURCE4 +mkdir -p catveren +mv readme.txt catveren +unzip -a $CWD/$SOURCE5 +mv docs nplayers +unzip $CWD/$SOURCE6 + +# Fix permissions and line endings +chmod 0644 mameinfo/*.txt +chmod 0755 mameinfo +sed -i 's/\r//' mameinfo/* nplayers/nplayers.txt + +# Install +install -d $PKG/usr/share/games/mame +install -pm 644 history.dat mameinfo.dat Catver.ini nplayers.ini cheat.zip \ + $PKG/usr/share/games/mame +7z x -o$PKG/usr/share/games/mame $CWD/$SOURCE3 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + catveren/readme.txt nplayers/nplayers.txt mameinfo cheat.txt readhist.txt \ + $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/sdlmame-data/sdlmame-data.info b/games/sdlmame-data/sdlmame-data.info new file mode 100644 index 0000000000..3cb96a6f80 --- /dev/null +++ b/games/sdlmame-data/sdlmame-data.info @@ -0,0 +1,10 @@ +PRGNAM="sdlmame-data" +VERSION="0.136" +HOMEPAGE="http://mamedev.org/" +DOWNLOAD="http://www.arcade-history.com/dats/mamehistory136.zip http://www.mameworld.info/mameinfo/download/Mameinfo0136.zip http://www.kutek.net/mame_roms_pinball/mame32_config_files/ctrlr.rar http://www.progettoemma.net/public/cat/catveren.zip http://nplayers.arcadebelgium.be/files/nplayers0136.zip http://cheat.retrogames.com/download/cheat0136.zip" +MD5SUM="ea90034a66b8b8f473d2c6d253c97d3a 5f16cb636d965985b17605db3bc49a9e d907085f2f69b74198796378e3ed0cb3 ec3e758f968daa9401c283d17baafd96 8ffd128e5a0df7b05a8567bb0c56d3fd 0de58f8bd3e619ffe03afdd9dd5d2aaf" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Pablo Santamaria" +EMAIL="pablosantamaria@gmail.com" +APPROVED="Erik Hanson" diff --git a/games/sdlmame-data/slack-desc b/games/sdlmame-data/slack-desc new file mode 100644 index 0000000000..e61ba7cfa1 --- /dev/null +++ b/games/sdlmame-data/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------------------------------------------------------| +sdlmame-data: sdlmame-data (Data files for the sdlmame package) +sdlmame-data: +sdlmame-data: Data files for the sdlmame package. +sdlmame-data: +sdlmame-data: +sdlmame-data: +sdlmame-data: +sdlmame-data: +sdlmame-data: +sdlmame-data: +sdlmame-data: |