1 # Contributor: Eric Forgeot < http://anamnese.online.fr >
6 pkgdesc="An adaptation of the Halebarde et Gonfanon board game with pygame."
8 url="https://code.launchpad.net/pyhalebarde"
12 source=(http://code.launchpad.net/pyhalebarde/0.2/${pkgver}/+download/${pkgname}_${pkgver}.orig.tar.gz)
13 md5sums=('c485a7ae82bec5f7468180a877dbbaa2')
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