1 # Contributor: Dany Martineau <dany.luc.martineau@gmail.com>
6 pkgdesc="Sightings in space (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-chemin/abuledu-chemin_9.2-1.tar.gz')
12 md5sums=('95e875f31c7cd532a807457486e55e32')
13 install=abuledu-chemin.install
16 cd ${startdir}/src/$pkgname-$pkgver
17 mkdir -p ${startdir}/pkg/usr/bin
18 mkdir -p ${startdir}/pkg/usr/share/{pixmaps,applications,abuledu-chemin}
19 sed -i 's_abuledu-chemin.png_/usr/share/pixmaps/abuledu-chemin.png_' abuledu-chemin.desktop
20 cp -a abuledu-chemin.desktop ${startdir}/pkg/usr/share/applications/abuledu-chemin.desktop
21 bzip2 -dc mandrake/abuledu-chemin-48.png.bz2 > ${startdir}/pkg/usr/share/pixmaps/abuledu-chemin.png
22 cp -a * ${startdir}/pkg/usr/share/abuledu-chemin
23 find ${startdir}/pkg/usr/share/abuledu-chemin -name \*\.tcl -exec recode ibmpc..lat1 {} \;
24 rm -rf `find ${startdir}/pkg/usr/share/abuledu-chemin -type d -name CVS`
25 mkdir -p ${startdir}/pkg/usr/share/doc/abuledu-chemin
26 cp -a aides/* ${startdir}/pkg/usr/share/doc/abuledu-chemin
27 chmod -R 755 ${startdir}/pkg/usr/share/abuledu-chemin
28 echo "#!/bin/sh" > ${startdir}/pkg/usr/bin/chemin
29 echo "(cd /usr/share/abuledu-chemin && ./chemin.tcl)" >> ${startdir}/pkg/usr/bin/chemin
30 chmod 755 ${startdir}/pkg/usr/bin/chemin