From 545c3831e733105ed207d778252bc18505da5036 Mon Sep 17 00:00:00 2001 From: Aurélien DESBRIÈRES Date: Thu, 5 Jun 2014 20:31:44 +0200 Subject: ocaml-ounit --- pcr/ocaml-ounit/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pcr/ocaml-ounit/PKGBUILD diff --git a/pcr/ocaml-ounit/PKGBUILD b/pcr/ocaml-ounit/PKGBUILD new file mode 100644 index 000000000..da4ed250d --- /dev/null +++ b/pcr/ocaml-ounit/PKGBUILD @@ -0,0 +1,36 @@ +# Contributor (Arch) : Marek Kubica +# Contributor (Arch) : Serge Zirukin +# Contributor (Arch) : Sergei Lebedev +# Contributor (Arch) : Thomas S Hatch +# Contributor (Arch) : Sebastian Wiesner +# Contributor (Arch) : Benjamin Andresen +# Contributor (Arch) : Sylvester Johansson +# Maintainer (Parabola) : Aurélien DESBRIÈRES + +pkgname=ocaml-ounit +_pkgname=ounit +pkgver=2.0.0 +pkgrel=1 +arch=('i686' 'x86_64') +license=('MIT') +pkgdesc="Unit testing framework for OCaml" +url="http://ounit.forge.ocamlcore.org" +depends=('ocaml') +makedepends=('ocaml-findlib') +options=('!strip') +source=("http://forge.ocamlcore.org/frs/download.php/1258/$_pkgname-$pkgver.tar.gz") + +build() { + cd "$srcdir/$_pkgname-$pkgver" + + ./configure --disable-debug --prefix /usr --destdir "$pkgdir" + make all +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)" + install -dm 755 "$OCAMLFIND_DESTDIR" + make install + install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} -- cgit v1.2.3