updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / abuledu-labyrinthe / PKGBUILD
blobc3325121377d63a8ebe56817060a4997b69cb943
1 # Contributor: Dany Martineau <dany.luc.martineau@gmail.com>
3 pkgname=abuledu-labyrinthe
4 pkgver=1.3.1
5 pkgrel=1
6 pkgdesc='Sightings in space II (in french)'
7 url="http://www.abuledu.org/leterrier/accueil"
8 license=('GPL')
9 arch=('i686' 'x86_64')
10 depends=('abuledu-leterrier')
11 source=('http://apt.ryxeo.com/leterrier/pool/main/a/abuledu-labyrinthe/abuledu-labyrinthe_1.3.1ryxeo1.tar.gz')
12 md5sums=('73c9b194431a08b315cf415bedc974f3')
15 build() {
16   cd ${startdir}/src/$pkgname-$pkgver
17   mkdir -p ${startdir}/pkg/usr/bin
18   mkdir -p ${startdir}/pkg/usr/share/{pixmaps,applications,abuledu-labyrinthe}
19   sed -i 's_abuledu-labyrinthe.png_/usr/share/pixmaps/abuledu-labyrinthe.png_' abuledu-labyrinthe.desktop
20   cp -a abuledu-labyrinthe.desktop ${startdir}/pkg/usr/share/applications/abuledu-labyrinthe.desktop
21   bzip2 -dc mandrake/abuledu-labyrinthe-48.png.bz2 > ${startdir}/pkg/usr/share/pixmaps/abuledu-labyrinthe.png
22   cp -a * ${startdir}/pkg/usr/share/abuledu-labyrinthe
23   find ${startdir}/pkg/usr/share/abuledu-labyrinthe -name \*\.tcl -exec recode ibmpc..lat1 {} \;
24   rm -f ${startdir}/pkg/usr/share/abuledu-labyrinthe/runbrowser
25   rm -rf `find ${startdir}/pkg/usr/share/abuledu-labyrinthe -type d -name CVS`
26   mkdir -p ${startdir}/pkg/usr/share/doc/abuledu-labyrinthe
27   cp -a aide/* ${startdir}/pkg/usr/share/doc/abuledu-labyrinthe
28   chmod -R 755 ${startdir}/pkg/usr/share/abuledu-labyrinthe
29   echo "#!/bin/sh" > ${startdir}/pkg/usr/bin/labyrinthe
30   echo "(cd /usr/share/abuledu-labyrinthe && ./labyrinthes.tcl)" >> ${startdir}/pkg/usr/bin/labyrinthe
31   chmod 755 ${startdir}/pkg/usr/bin/labyrinthe