updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / wahcade-bzr / PKGBUILD
blob805b1e4858e42d54d075e8f70597cb9989435e9f
2 # Maintainer: Adam Newby <mastacheif@gmail.com>
3 pkgname=wahcade-bzr
4 pkgver=79
5 pkgrel=1
6 pkgdesc="wahcade-bzr is a development branch of Wah!cade, the multiple emulator frontend"
7 arch=('i686' 'x86_64')
8 url="http://code.launchpad.net/~waynemou/wahcade/devel"
9 license=('GPL')
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')
14 makedepends=('bzr')
15 conflicts=('wahcade')
16 md5sums=() #Blank for now
18 _bzrtrunk="lp:~waynemou/wahcade/devel"
19 _bzrmod="~waynemou/wahcade/devel"
21 build() {
22   cd "$srcdir"
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."
28   else
29     bzr branch "$_bzrtrunk" -q -r "$pkgver"
30   fi
32   msg "Bazaar checkout done or server timeout"
33   msg "Starting build..."
34   rm -rf "$srcdir/build"
35   cp -r "$srcdir/devel" "$srcdir/build"
36   cd "$srcdir/build"
38   # Create directories for the install script
39   install -d "$pkgdir/usr/"{bin,share/pixmaps}
41   #
42   # Repair install for compatibility with Arch
43   #
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' \
50   -i install
51   ./install || return 1
54 # vim:set ts=2 sw=2 et: