1 # Contributor: Dany Martineau <dany.luc.martineau@gmail.com>
3 pkgname=abuledu-operations
6 pkgdesc="Maths operations from LeTerrier (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-operations/abuledu-operations_9.3-2.tar.gz')
12 md5sums=('78ed62efc9e9b54b50fc90fa49477680')
16 cd ${startdir}/src/$pkgname-$pkgver
17 mkdir -p ${startdir}/pkg/usr/bin
18 mkdir -p ${startdir}/pkg/usr/share/{pixmaps,applications,abuledu-operations}
19 sed -i 's_abuledu-operations.png_/usr/share/pixmaps/abuledu-operations.png_' abuledu-operations.desktop
20 cp -a abuledu-operations.desktop ${startdir}/pkg/usr/share/applications/abuledu-operations.desktop
21 bzip2 -dc mandrake/abuledu-operations-48.png.bz2 > ${startdir}/pkg/usr/share/pixmaps/abuledu-operations.png
22 cp -a * ${startdir}/pkg/usr/share/abuledu-operations
23 find ${startdir}/pkg/usr/share/abuledu-operations -name \*\.tcl -exec recode ibmpc..lat1 {} \;
24 rm -f ${startdir}/pkg/usr/share/abuledu-operations/{runbrowser,shellexec.exe}
25 mkdir -p ${startdir}/pkg/usr/share/doc/abuledu-operations
26 cp -a aide/* ${startdir}/pkg/usr/share/doc/abuledu-operations
27 chmod -R 755 ${startdir}/pkg/usr/share/abuledu-operations
28 echo "#!/bin/sh" > ${startdir}/pkg/usr/bin/operations
29 echo "(cd /usr/share/abuledu-operations && ./operations.tcl)" >> ${startdir}/pkg/usr/bin/operations
30 chmod 755 ${startdir}/pkg/usr/bin/operations