updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / pyhalebarde / PKGBUILD
blob2f141969d5101f05959ef0d74cc5ca98ea27b0e4
1 # Contributor: Eric Forgeot < http://anamnese.online.fr >
3 pkgname=pyhalebarde
4 pkgver=0.2
5 pkgrel=1
6 pkgdesc="An adaptation of the Halebarde et Gonfanon board game with pygame."
7 arch=('i686' 'x86_64')
8 url="https://code.launchpad.net/pyhalebarde"
9 license=('GPL')
10 depends=('pygame')
12 source=(http://code.launchpad.net/pyhalebarde/0.2/${pkgver}/+download/${pkgname}_${pkgver}.orig.tar.gz)
13 md5sums=('c485a7ae82bec5f7468180a877dbbaa2')  
15 build() {
16         cd $startdir/src/pyhalebarde-$pkgver
17         sed -i -e "s/share\/games/share/g" $srcdir/${pkgname}-$pkgver/setup.py
18         sed -i -e "s/share\/games/share/g" $srcdir/${pkgname}-$pkgver/halebarde/ui.py
19         #sed -i -e "s/share\/games/share\/g" $srcdir/pyhalebarde-$pkgver/build/lib/halebarde/ui.py
20 #       sed -i -e "s/json.read/json.loads/g" $srcdir/pyhalebarde-$pkgver/halebarde/ui.py
21         sed -i -e "s/usr\/games/usr\/bin/g" $srcdir/${pkgname}-$pkgver/pyhalebarde.desktop
22         sed -i -e "s/DATA_FILES.append((\"games/DATA_FILES.append((\"bin/g" $srcdir/${pkgname}-$pkgver/setup.py
23         mkdir -p $pkgdir/usr/share/${pkgname}
24         mkdir -p $pkgdir/usr/share/pixmap
25         mkdir -p $pkgdir/usr/share/applications
26         mkdir -p $pkgdir/usr/share/locale/fr/LC_MESSAGES/
27         mkdir -p $pkgdir/usr/share/locale/${pkgname}/LC_MESSAGES/
28         python setup.py build || return 1
29     python setup.py install --root=$pkgdir
30