2 # Maintainer: Adam Newby <mastacheif@gmail.com>
6 pkgdesc="wahcade-bzr is a development branch of Wah!cade, the multiple emulator frontend"
8 url="http://code.launchpad.net/~waynemou/wahcade/devel"
10 depends=('pygtk>=2.8' 'python2' 'python-chardet>=1.0')
11 optdepends=('pil: required for image rotation in layouts'
12 'gstreamer0.10: required for video & music playback'
13 'pygame: required for joystick support')
16 md5sums=() #Blank for now
18 _bzrtrunk="lp:~waynemou/wahcade/devel"
19 _bzrmod="~waynemou/wahcade/devel"
23 msg "Connecting to server...."
25 if [[ -d "devel" ]]; then
26 cd "$_bzrmod" && bzr pull devel -r "$pkgver" #"$_bzrtrunk" -r "$pkgver"
27 msg "The local files are updated."
29 bzr branch "$_bzrtrunk" -q -r "$pkgver"
32 msg "Bazaar checkout done or server timeout"
33 msg "Starting build..."
34 rm -rf "$srcdir/build"
35 cp -r "$srcdir/devel" "$srcdir/build"
38 # Create directories for the install script
39 install -d "$pkgdir/usr/"{bin,share/pixmaps}
42 # Repair install for compatibility with Arch
44 sed -i '/\/usr\/share\/applications/d' install
45 sed -i 's/env python/env python2/' *.py
46 sed -e 's/python/python2/g' \
47 -e 's|PREFIX=/usr/local|PREFIX=../../pkg/usr|' \
48 -e 's|cd ${DESTDIR}|cd /usr/share/${NAME}|g' \
49 -e 's|/usr/share/pixmaps|$PREFIX/share/pixmaps|g' \
54 # vim:set ts=2 sw=2 et: