summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/ocaml-ounit/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
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 <marek@xivilization.net>
+# Contributor (Arch) : Serge Zirukin <ftrvxmtrx@gmail.com>
+# Contributor (Arch) : Sergei Lebedev <superbobry@gmail.com>
+# Contributor (Arch) : Thomas S Hatch <thatch45 at gmail dot com>
+# Contributor (Arch) : Sebastian Wiesner <lunaryorn googlemail com>
+# Contributor (Arch) : Benjamin Andresen <benny(at)klapmuetz(dot)org>
+# Contributor (Arch) : Sylvester Johansson <syljo361(at)gmail(dot)org>
+# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
+
+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"
+}