updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / ocaml-ounit / PKGBUILD
blobc037fa361224b8e8c86883acba16e3daa9a7c442
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.0
8 pkgrel=5
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/495/ounit-${pkgver}.tar.gz")
17 md5sums=('bf82bd7f8853cd9a1aff7be716192643')
19 build() {
20   cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
21   make CONFIGUREFLAGS="--prefix /usr --destdir $pkgdir" build
24 package() {
25   cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
26   export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)"
27   install -dm 755 "$OCAMLFIND_DESTDIR"
28   install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"