6 pkgdesc="This is a small program to learn how to program with ants and spider webs"
8 url="http://www.pps.jussieu.fr/~gimenez/laby/"
10 source=("http://www.pps.jussieu.fr/~gimenez/data/fdls/${pkgname}-${pkgver}.tar.gz"
15 depends=('gtksourceview2' 'fontconfig>=2.8.0' 'ocaml')
16 makedepends=('ocaml-findlib' 'lablgtk2')
20 sha256sums=('800082f48b2d8c72c6051175309f602510ce83c845ab75a74337f25265f0fdcc'
21 'f0fdb2d87ad599a676ddfc42ecdd1b5851e0672f566ff440e979528ec87b8c76'
22 '6642ad66330c947e1078904d97e9863c00c32b56d7f72a9244df1fc2d6b4ce61'
23 '184484cfc35d3be94af9a03e9b2f789402e9d4961c8497dd8ed24f7a5747ed89'
24 '7bd12e805fb7a0f1075e385c59317bbb80d765b12ee7a60f80875e2494e0b8d0')
27 echo "You need to add two links in the system"
28 echo "At the end of the compilation will be removed changes"
30 echo "copying the file META to /usr/lib/ocaml/lablgtk2/META"
31 sudo cp "${srcdir}/META" "/usr/lib/ocaml/lablgtk2/META"
32 echo "creating a link: /usr/lib/ocaml/lablgtk2 --> /usr/lib/ocaml/site-packages"
33 sudo ln -s /usr/lib/ocaml/lablgtk2 /usr/lib/ocaml/site-packages
34 cd "${srcdir}/${pkgname}-${pkgver}"
38 echo "Removing changes"
39 sudo rm "/usr/lib/ocaml/lablgtk2/META"
40 sudo rm "/usr/lib/ocaml/site-packages"
48 cp "${srcdir}/${pkgname}-${pkgver}/${pkgname}-linuxelf-i386.native" "${pkgdir}/usr/bin/laby"
49 cd "${pkgdir}/usr/share"
50 mkdir "applications" "icons" "icons/hicolor" "icons/hicolor/scalable/" "icons/hicolor/scalable/apps/" "laby" "man" "man/man6" "pixmaps"
51 cp "${srcdir}/laby.desktop" "${pkgdir}/usr/share/applications"
52 cp "${srcdir}/laby.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/"
53 cd "${srcdir}/${pkgname}-${pkgver}/data"
54 cp -r * "${pkgdir}/usr/share/laby"
55 cp "${srcdir}/laby.6.gz" "${pkgdir}/usr/share/man/man6/"
56 cd "${pkgdir}/usr/share/pixmaps"
57 ln -s "../icons/hicolor/scalable/apps/laby.svg" laby.svg