updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / ocaml-fieldslib / PKGBUILD
blob8eb892d1926d272aa90451c900b56c4876ec28e4
1 # Maintainer: Sergei Lebedev <superbobry@gmail.com>
2 # Contributor: Nicolas Pouillard <nicolas(dot)pouillard(at)gmail(dot)com>
4 pkgname=ocaml-fieldslib
5 pkgver=107.01
6 pkgrel=2
7 pkgdesc="OCaml syntax extension for folding over record fields."
8 arch=('i686' 'x86_64')
9 url="http://ocaml.janestcapital.com/?q=node/13"
10 # LGPL + linking exception
11 license=('LGPL')
12 depends=('ocaml' 'ocaml-type-conv')
13 makedepends=('ocaml-findlib')
14 source=(http://www.janestreet.com/ocaml/${pkgname/ocaml-/}-$pkgver.tar.gz)
15 md5sums=('f2ed8e1b485881405dba601ffd87112b')
16 options=(!strip !makeflags)
18 build(){
19   cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
21   ocaml setup.ml -configure --prefix /usr --destdir ${pkgdir}
22   ocaml setup.ml -build || return 1
25 package(){
26   cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
28   export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)"
30   mkdir -p $OCAMLFIND_DESTDIR
31   make install
32   install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
35 # vim:set ts=2 sw=2 et: