updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ocaml-ounit / PKGBUILD
blobdfd6990ffb86749df492181da2fdafe1c1354e55
1 # Maintainer: Sergei Lebedev <superbobry@gmail.com>
2 # Contributor: Thomas S Hatch <thatch45 at gmail dot com>
3 # Contributor: Sebastian Wiesner <lunaryorn googlemail com>
4 # Contributor: Benjamin Andresen <benny(at)klapmuetz(dot)org>
5 #              Sylvester Johansson <syljo361(at)gmail(dot)org>
6 pkgname=ocaml-ounit
7 pkgver=1.1.1
8 pkgrel=1
9 arch=('i686' 'x86_64')
10 license=('MIT')
11 pkgdesc="Unit testing framework for OCaml"
12 url="http://ounit.forge.ocamlcore.org"
13 depends=('ocaml')
14 makedepends=('ocaml-findlib')
15 options=('!strip')
16 source=("http://forge.ocamlcore.org/frs/download.php/762/ounit-$pkgver.tar.gz")
17 md5sums=('b28e4c25ad5fc9080639d47fd51c7c24')
19 build() {
20   cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
21   make CONFIGUREFLAGS="--prefix /usr --destdir $pkgdir" build doc
24 package() {
25   cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
26   export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)"
27   install -dm 755 "$OCAMLFIND_DESTDIR"
28   make install
29   install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"