updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / ocaml-aaa / PKGBUILD
blobfd1911f73ab2b85c2bbb4a0145a9ae616f553305
1 #Contributor: Sergey Plaksin <serp256@gmail.com>
3 pkgname=ocaml-aaa
4 pkgver=0.9.1
5 pkgrel=1
6 pkgdesc="Batteries Included for OCaml stripped down version"
7 arch=('i686' 'x86_64')
8 url="https://forge.ocamlcore.org/projects/batteries/"
9 license=('LGPL')
10 depends=('ocaml' 'ocaml-findlib' 'ocaml-camomile' 'ocaml-ounit')
11 buld_depends=("omake")
12 source=(https://forge.ocamlcore.org/frs/download.php/334/aaa-batteries-$pkgver.tar.gz)
13 md5sums=('0af4bf33b0588c07b97b6b4222428551')
15 build() {
16         cd $srcdir/aaa-batteries-$pkgver
17         sed -i "s|/usr/share/doc/ocaml-aaa/|$pkgdir/usr/share/doc/$pkgname/|" OMakefile
18         omake all || return 1
19         omake doc
20         mkdir -p $pkgdir$(ocamlfind printconf destdir)/aaa
21         OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)" omake install
22         omake install-doc
23         install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE