updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ocaml-sexplib / PKGBUILD
blob9e26a6ad48ecddf47521bcd735812bf5621e70f2
1 # Maintainer: Sergei Lebedev <superbobry@gmail.com>
2 # Contributor : Nicolas Pouillard <nicolas(dot)pouillard(at)gmail(dot)com>
3 # Contributor: Sylvester Johansson <scj(at)archlinux(dot)us>
4 pkgname=ocaml-sexplib
5 pkgver=7.0.4
6 pkgrel=3
7 pkgdesc="Automated code generation for converting OCaml-values to S-expressions"
8 arch=('i686' 'x86_64')
9 url="http://ocaml.janestcapital.com/?q=node/13"
10 license=('LGPL')
11 depends=('ocaml' 'ocaml-type-conv>=3.0.4')
12 makedepends=('ocaml-findlib')
13 options=(!strip !makeflags)
14 source=("http://forge.ocamlcore.org/frs/download.php/699/sexplib-$pkgver.tar.gz")
15 md5sums=('58a858d180107c925903fce4dc700de5')
17 build() {
18   cd "$srcdir/${pkgname/ocaml-/}-${pkgver}"
20   make CONFIGUREFLAGS="--prefix /usr --destdir $pkgdir --disable-tests" build
23 package(){
24   cd "$srcdir/${pkgname/ocaml-/}-${pkgver}"
25   export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)"
26   mkdir -p $OCAMLFIND_DESTDIR
27   make install
28   install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE