summaryrefslogtreecommitdiffstats
path: root/abs/extra/sdlmame/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-08-30 22:26:00 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-08-30 22:26:00 (GMT)
commit1f175a7b07b9553ce98d0546ac04dbb925ec0bc9 (patch)
treec969070115611a8a75f23d468aa5e0cf86a08121 /abs/extra/sdlmame/PKGBUILD
parentc4bd4457b5d640e1c8f5afbca7cd54c53691e5fc (diff)
downloadlinhes_pkgbuild-1f175a7b07b9553ce98d0546ac04dbb925ec0bc9.zip
linhes_pkgbuild-1f175a7b07b9553ce98d0546ac04dbb925ec0bc9.tar.gz
linhes_pkgbuild-1f175a7b07b9553ce98d0546ac04dbb925ec0bc9.tar.bz2
RESYNC EXTRA:
synced extra-testing -> extra repo Signed-off-by: James Meyer <james.meyer@operamail.com>
Diffstat (limited to 'abs/extra/sdlmame/PKGBUILD')
-rw-r--r--abs/extra/sdlmame/PKGBUILD88
1 files changed, 56 insertions, 32 deletions
diff --git a/abs/extra/sdlmame/PKGBUILD b/abs/extra/sdlmame/PKGBUILD
index cb9d65b..2718a57 100644
--- a/abs/extra/sdlmame/PKGBUILD
+++ b/abs/extra/sdlmame/PKGBUILD
@@ -1,65 +1,89 @@
-# $Id: PKGBUILD,v 1.19 2009/04/24 15:05:30 sergej Exp $
+# $Id: PKGBUILD 12909 2010-03-15 11:46:58Z spupykin $
# Contributor: robb_force <robb_force@holybuffalo.net>
# Maintainer: JJDaNiMoTh <jjdanimoth@gmail.com>
pkgname=sdlmame
-pkgver=0.131
-pkgrel=1
+pkgver=0.137
+_basever=0137
+pkgrel=3
pkgdesc="A port of the popular Multiple Arcade Machine Emulator using SDL with OpenGL support."
-url="http://rbelmont.mameworld.info/?page_id=163"
+url="http://mamedev.org/"
license=('custom:MAME License')
arch=('i686' 'x86_64')
depends=('sdl>=1.2.11' 'libxinerama' 'gconf')
makedepends=('unzip' 'nasm' 'mesa')
-DLAGENTS=('http::/usr/bin/wget -U "" -c -t 3 --waitretry=3')
-options=('!makeflags' 'force')
+DLAGENTS=('http::/usr/bin/wget -U "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.2) Gecko/20090804 Shiretoko/3.5.2" -c -t 3 --waitretry=3')
+options=('force')
install=sdlmame.install
-source=(http://rbelmont.mameworld.info/${pkgname}${pkgver%.*}${pkgver#*.}.zip \
- sdlmame.sh \
- extras.tar.gz)
-md5sums=('d4891999ec2ee11cb0d75a1596e17060'
- '3119ccfa1e970eba4467df31208adaf0'
- '420b61240bf5ae11615ba7c6100ee00d')
+source=("http://aarongiles.com/mirror/releases/mame0137s.zip"
+#"mame${_basever}s.zip::http://mamedev.org/downloader.php?&file=mame${_basever}s.zip"
+# "http://mamedev.org/updates/0136u1_diff.zip"
+# "http://mamedev.org/updates/0136u2_diff.zip"
+# "http://mamedev.org/updates/0136u3_diff.zip"
+ "sdlmame.sh"
+ "extras.tar.gz"
+ "mame-0137-wiimote.diff")
build() {
- cd ${startdir}/src/${pkgname}${pkgver%.*}${pkgver#*.}
+ cd $srcdir/
- sed -i 's/-Werror//' makefile || return 1
+ if [ $NOEXTRACT -eq 0 ]; then
+ unzip mame.zip
+# find . -type f -not -name uismall.png | xargs perl -pi -e 's/\r\n?/\n/g'
+# patch -p0 -E <0136u1.diff
+# patch -p0 -E <0136u2.diff
+# patch -p0 -E <0136u3.diff
+ patch -p1 < ../mame-0137-wiimote.diff || return 1
+ sed -i 's/-Werror//' makefile || return 1
+ fi
# Modify the make options based on the user's architecture
if [ "$CARCH" == "x86_64" ]; then
echo "Compiling for AMD64..."
make AMD64=1 PTR64=1 || return 1
+ make tools AMD64=1 PTR64=1 || return 1
elif [ "$CARCH" == "i686" ]; then
make I686=1 || return 1
+ make tools I686=1 || return 1
else
echo "Compiling for i386..."
make PM=1 || return 1
+ make tools PM=1 || return 1
fi
# Install the sdlmame script
- install -Dm755 ${startdir}/src/${pkgname}.sh ${startdir}/pkg/usr/bin/${pkgname} || return 1
+ install -Dm755 $srcdir/${pkgname}.sh $pkgdir/usr/bin/${pkgname} || return 1
# Install the applications and the UI font in /usr/share
- install -Dm755 mame* ${startdir}/pkg/usr/share/${pkgname}/${pkgname} && \
- install -m755 chdman ${startdir}/pkg/usr/share/${pkgname}/chdman && \
- install -m755 jedutil ${startdir}/pkg/usr/share/${pkgname}/jedutil && \
-# install -m755 makemeta ${startdir}/pkg/usr/share/${pkgname}/makemeta && \
- install -m755 regrep ${startdir}/pkg/usr/share/${pkgname}/regrep && \
- install -m755 romcmp ${startdir}/pkg/usr/share/${pkgname}/romcmp && \
- install -m755 runtest ${startdir}/pkg/usr/share/${pkgname}/runtest && \
- install -m755 testkeys ${startdir}/pkg/usr/share/${pkgname}/testkeys && \
- install -m755 src2html ${startdir}/pkg/usr/share/${pkgname}/src2html && \
- install -m755 srcclean ${startdir}/pkg/usr/share/${pkgname}/srcclean && \
- install -m755 ldverify ${startdir}/pkg/usr/share/${pkgname}/ldverify && \
- install -m644 ui.bdf ${startdir}/pkg/usr/share/${pkgname}/ui.bdf || return 1
+ install -Dm755 mame $pkgdir/usr/share/${pkgname}/${pkgname} || \
+ install -Dm755 mame64 $pkgdir/usr/share/${pkgname}/${pkgname} || return 1
+
+ install -m755 chdman $pkgdir/usr/share/${pkgname}/chdman && \
+ install -m755 jedutil $pkgdir/usr/share/${pkgname}/jedutil && \
+ install -m755 regrep $pkgdir/usr/share/${pkgname}/regrep && \
+ install -m755 romcmp $pkgdir/usr/share/${pkgname}/romcmp && \
+ install -m755 testkeys $pkgdir/usr/share/${pkgname}/testkeys && \
+ install -m755 src2html $pkgdir/usr/share/${pkgname}/src2html && \
+ install -m755 srcclean $pkgdir/usr/share/${pkgname}/srcclean && \
+ install -m755 ldverify $pkgdir/usr/share/${pkgname}/ldverify && \
+ install -m755 ldresample $pkgdir/usr/share/${pkgname}/ldresample || return 1
+
+# install -m755 makemeta $pkgdir/usr/share/${pkgname}/makemeta && \
+# install -m755 runtest $pkgdir/usr/share/${pkgname}/runtest && \
+# install -m644 ui.bdf $pkgdir/usr/share/${pkgname}/ui.bdf || return 1
# Install the extra bits
- install -d ${startdir}/pkg/usr/share/${pkgname}/{artwork,ctrlr,keymaps} && \
- install -m644 ${startdir}/src/artwork/* ${startdir}/pkg/usr/share/${pkgname}/artwork/ && \
- install -m644 ${startdir}/src/ctrlr/* ${startdir}/pkg/usr/share/${pkgname}/ctrlr/ && \
- install -m644 keymaps/* ${startdir}/pkg/usr/share/${pkgname}/keymaps/ || return 1
+ install -d $pkgdir/usr/share/${pkgname}/{artwork,ctrlr,keymaps} && \
+ install -m644 $srcdir/artwork/* $pkgdir/usr/share/${pkgname}/artwork/ && \
+ install -m644 $srcdir/ctrlr/* $pkgdir/usr/share/${pkgname}/ctrlr/ || return 1
+ install -m644 src/osd/sdl/keymaps/* $pkgdir/usr/share/${pkgname}/keymaps/ || return 1
# Include the license
- install -Dm644 docs/license.txt $startdir/pkg/usr/share/licenses/${pkgname}/license.txt
+ install -Dm644 docs/license.txt $startdir/pkg/usr/share/licenses/${pkgname}/license.txt || return 1
+
+ find $pkgdir -type f -exec strip {} \;
}
+md5sums=('ce9e5359e882d5a8219821e39bd4f27a'
+ '3119ccfa1e970eba4467df31208adaf0'
+ '420b61240bf5ae11615ba7c6100ee00d'
+ '07ba30c6054bf864f7c1300bfef03b81')