1 # Contributor: Dany Martineau <dany.luc.martineau@gmail.com>
3 pkgname=abuledu-tableaux
6 pkgdesc="School program to manipulate double arrays (in french)"
7 url="http://www.abuledu.org/leterrier/accueil"
10 depends=('abuledu-leterrier')
11 source=('http://apt.ryxeo.com/abebeta/pool/main/a/abuledu-tableaux/abuledu-tableaux_8.12.tar.gz')
12 md5sums=('df7cfd1f77a05d8104205d5241336bbe')
16 cd ${startdir}/src/$pkgname-$pkgver
17 mkdir -p ${startdir}/pkg/usr/bin
18 mkdir -p ${startdir}/pkg/usr/share/{pixmaps,applications,abuledu-tableaux}
19 sed -i 's_abuledu-tableaux.png_/usr/share/pixmaps/abuledu-tableaux.png_' abuledu-tableaux.desktop
20 cp -a abuledu-tableaux.desktop ${startdir}/pkg/usr/share/applications/abuledu-tableaux.desktop
21 bzip2 -dc mandrake/abuledu-tableaux-48.png.bz2 > ${startdir}/pkg/usr/share/pixmaps/abuledu-tableaux.png
22 cp -a * ${startdir}/pkg/usr/share/abuledu-tableaux
23 find ${startdir}/pkg/usr/share/abuledu-tableaux -name \*\.tcl -exec recode ibmpc..lat1 {} \;
24 mkdir -p ${startdir}/pkg/usr/share/doc/abuledu-tableaux
25 cp -a aides/* ${startdir}/pkg/usr/share/doc/abuledu-tableaux
26 chmod -R 755 ${startdir}/pkg/
27 echo "#!/bin/sh" > ${startdir}/pkg/usr/bin/tableaux
28 echo "(cd /usr/share/abuledu-tableaux && ./tableaux.tcl)" >> ${startdir}/pkg/usr/bin/tableaux
29 chmod 755 ${startdir}/pkg/usr/bin/tableaux