updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bubbros / PKGBUILD
blob54d6577fad3a8ad9fa321ec52343fa2a2b4abbb0
1 # Maintainer: Vitaly Bogdanov <vsbogd at gmail dot com>
2 # Contributor: Allan McRae <mcrae_allan@hotmail.com>
4 pkgname=bubbros
5 pkgver=1.6
6 pkgrel=3
7 pkgdesc="Bubble Bobble clone for up to 10 players"
8 arch=('i686' 'x86_64')
9 license=('MIT')
10 url="http://bub-n-bros.sourceforge.net"
11 depends=('python2' 'patch')
12 source=(http://downloads.sourceforge.net/bub-n-bros/$pkgname-$pkgver.tar.gz
13         bub-n-bros-1.6-home.patch
14         bub-n-bros-1.6-python25.patch
15         bub-n-bros-1.6-python2.patch
16         bubnbros.desktop)
17 install=bubnbros.install
18 md5sums=('157e47b577b1192df2e142f35f30e460'
19          'f37690393ccd1779902f4328b5e0e500'
20          '2168c2dd263ef3d94d80a34d87cba496'
21          '904fa364689717ea84cf31814c77b928'
22          'f3b91347f8a47838bb389a6badcac7d7')
24 build() {
25   cd $startdir/src/$pkgname-$pkgver
26   patch -Np1 -i ../bub-n-bros-1.6-python2.patch
27   patch -Np1 -i ../bub-n-bros-1.6-python25.patch
28   patch -Np0 -i ../bub-n-bros-1.6-home.patch
30   cd $startdir/src/$pkgname-$pkgver/bubbob
31   python2 setup.py build_ext -i || return 1
32   cd $startdir/src/$pkgname-$pkgver/display
33   python2 setup.py build_ext -i || return 1
34   cd $startdir/src/$pkgname-$pkgver/bubbob/images
35   python2 buildcolors.py || return 1
37   mkdir -p $startdir/pkg/usr/share/bubbros
38   cd $startdir/src/$pkgname-$pkgver/
39   install -m755 BubBob.py $startdir/pkg/usr/share/bubbros
40   cp -r {bubbob,common,display,java,http2,metaserver} $startdir/pkg/usr/share/bubbros
41   
42   mkdir -p $startdir/pkg/usr/bin
43   ln -s /usr/share/bubbros/BubBob.py $startdir/pkg/usr/bin/bubnbros
45   mkdir -p $startdir/pkg/usr/share/{applications,pixmaps}
46   install -m644 $startdir/src/bubnbros.desktop \
47     ${startdir}/pkg/usr/share/applications/
48   install -m644 $startdir/src/$pkgname-$pkgver/http2/data/bob.png \
49     ${startdir}/pkg/usr/share/pixmaps/bubnbros.png