updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / laby / PKGBUILD
blobcd0e02d33ee91ea2e43df9c28c25aa4c21828809
1 # Maintainer: helq
3 pkgname=laby
4 pkgver=0.6.2
5 pkgrel=1
6 pkgdesc="This is a small program to learn how to program with ants and spider webs"
7 arch=('i686' 'x86_64')
8 url="http://www.pps.jussieu.fr/~gimenez/laby/"
9 license=('GPL3')
10 source=("http://www.pps.jussieu.fr/~gimenez/data/fdls/${pkgname}-${pkgver}.tar.gz"
11         "laby.desktop"
12         "laby.svg"
13         "laby.6.gz"
14         "META")
15 depends=('gtksourceview2' 'fontconfig>=2.8.0' 'ocaml')
16 makedepends=('ocaml-findlib' 'lablgtk2')
17 replaces=()
18 conflicts=()
19 provides=()
20 sha256sums=('800082f48b2d8c72c6051175309f602510ce83c845ab75a74337f25265f0fdcc'
21             'f0fdb2d87ad599a676ddfc42ecdd1b5851e0672f566ff440e979528ec87b8c76'
22             '6642ad66330c947e1078904d97e9863c00c32b56d7f72a9244df1fc2d6b4ce61'
23             '184484cfc35d3be94af9a03e9b2f789402e9d4961c8497dd8ed24f7a5747ed89'
24             '7bd12e805fb7a0f1075e385c59317bbb80d765b12ee7a60f80875e2494e0b8d0')
26 build() {
27   echo "You need to add two links in the system"
28   echo "At the end of the compilation will be removed changes"
29   echo ""
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}"
35   echo ""
36   make
37   echo ""
38   echo "Removing changes"
39   sudo rm "/usr/lib/ocaml/lablgtk2/META" 
40   sudo rm "/usr/lib/ocaml/site-packages"
43 package() {
44   cd "$pkgdir/"
45   mkdir "usr"
46   cd "$pkgdir/usr"
47   mkdir "bin" "share"
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