1 # Contributor: robb_force <robb_force@holybuffalo.net>
2 # Maintainer: Anton Shestakov <engored*ya.ru>
7 pkgdesc="A front-end for XMAME, SDLMAME, Daphne, Raine, mupen64, PCSX and many other emulators. It has been designed to work well with arcade controls."
8 url="http://www.anti-particle.com/wahcade.shtml"
10 arch=('i686' 'x86_64')
11 depends=('pygtk>=2.8' 'python2' 'python-chardet>=1.0')
12 optdepends=('pil: required for image rotation in layouts'
13 'gstreamer0.10: required for video & music playback'
14 'pygame: required for joystick support')
15 source=("http://www.anti-particle.com/projects/$pkgname/$pkgname-$pkgver.tar.gz")
16 install=wahcade.install
17 md5sums=('88873138a885cdab832e5af67863c945')
20 # Create directories for the install script
21 install -d "$pkgdir/usr/"{bin,share/pixmaps}
25 # The following sed changes to the install script remove an
26 # unneeded line, replace the prefix with a workaround path for
27 # building the package, repair the path in the scripts with a
28 # proper Arch path, and finally replace the paths for the
29 # desktop shortcut and icon.
30 sed -i '/\/usr\/share\/applications/d' install
31 sed -i 's/env python/env python2/' *.py
32 sed -e 's/python/python2/g' \
33 -e 's|PREFIX=/usr/local|PREFIX=../../pkg/usr|' \
34 -e 's|cd ${DESTDIR}|cd /usr/share/${NAME}|g' \
35 -e 's|/usr/share/pixmaps|$PREFIX/share/pixmaps|g' \