summaryrefslogtreecommitdiff
path: root/pcr/ocaml-ounit
diff options
context:
space:
mode:
authorAurélien DESBRIÈRES <aurelien@hackers.camp>2014-06-05 20:31:44 +0200
committerAurélien DESBRIÈRES <aurelien@hackers.camp>2014-06-05 20:31:44 +0200
commit545c3831e733105ed207d778252bc18505da5036 (patch)
tree160d0869c08af92b2854bf20fe9f21877a478e4d /pcr/ocaml-ounit
parent3d222de3f9bc79dbc79b7831b170e1e87e33ebbd (diff)
ocaml-ounit
Diffstat (limited to 'pcr/ocaml-ounit')
-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"
+}