updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / ocaml-odn / PKGBUILD
blob5befff5c833f1c07c0ca960b0fff6ffbac0593fa
1 # Maintainer: Magnus Therning <magnus@therning.org>
2 # Contributor: Sergei Lebedev <superbobry@gmail.com>
3 pkgname=ocaml-odn
4 pkgver=0.0.6
5 pkgrel=1
6 pkgdesc="OCaml data notation"
7 arch=('i686' 'x86_64')
8 url="https://forge.ocamlcore.org/projects/odn"
9 # LGPL + linking exception
10 license=('LGPL')
11 depends=('ocaml' 'ocaml-type-conv' 'ocaml-fileutils')
12 makedepends=('ocaml-findlib')
13 source=(https://forge.ocamlcore.org/frs/download.php/638/ocaml-data-notation-$pkgver.tar.gz
14         type-conv-compat.patch)
15 md5sums=('32d916776f37c6439d52a0adf34da922'
16          '68fcc2b59f1ac15335916d223511e21d')
17 options=(!strip)
19 build() {
20     cd ${srcdir}/ocaml-data-notation-${pkgver}
21     patch -Np0 < $startdir/type-conv-compat.patch
22     ocaml setup.ml -configure --prefix /usr --destdir ${pkgdir} --disable-tests
23     ocaml setup.ml -build
26 package() {
27     cd ${srcdir}/ocaml-data-notation-${pkgver}
28     OCAMLFIND_DESTDIR=${pkgdir}$(ocamlfind printconf destdir)
29     mkdir -p $OCAMLFIND_DESTDIR
30     OCAMLFIND_DESTDIR=$OCAMLFIND_DESTDIR ocaml setup.ml -install