updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / mahcade-bzr / PKGBUILD
blob00a960a92f914c1fb40d1f281d51fbae5f24c66a
2 # Maintainer: Adam Newby <mastacheif@gmail.com>
3 pkgname=mahcade-bzr
4 pkgver=74
5 pkgrel=1
6 pkgdesc="Mah!Cade is a development branch of Wah!cade the emualtor frontend"
7 arch=('i686' 'x86_64')
8 url="http://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 "$_bzrmod" ]]; then
26     cd "$_bzrmod" && bzr --no-plugins pull "$_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   echo "\n\n\nfrom: $srcdir to: $_bzrmod-build"
35   ls
36   echo "\n\n\n"
37   rm -rf "$srcdir/build"
38   cp -r "$srcdir/devel" "$srcdir/build"
39   cd "$srcdir/build"
41   # Create directories for the install script
42   install -d "$pkgdir/usr/"{bin,share/pixmaps}
44   #
45   # Repair install for compatibility with Arch
46   #
47   sed -i '/\/usr\/share\/applications/d' install
48   sed -i 's/env python/env python2/' *.py
49   sed -e 's/python/python2/g' \
50   -e 's|PREFIX=/usr/local|PREFIX=../../pkg/usr|' \
51   -e 's|cd ${DESTDIR}|cd /usr/share/${NAME}|g' \
52   -e 's|/usr/share/pixmaps|$PREFIX/share/pixmaps|g' \
53   -i install
54   ./install || return 1
57 #package() {
58 #  cd "$srcdir/$_bzrmod-build"
59 #  make DESTDIR="$pkgdir/" install
62 # vim:set ts=2 sw=2 et: