summaryrefslogtreecommitdiff
path: root/community/ocaml-ounit/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/ocaml-ounit/PKGBUILD')
-rw-r--r--community/ocaml-ounit/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/community/ocaml-ounit/PKGBUILD b/community/ocaml-ounit/PKGBUILD
new file mode 100644
index 000000000..1ac2c7445
--- /dev/null
+++ b/community/ocaml-ounit/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Thomas S Hatch <thatch45 at gmail dot com>
+# Contributor: Sebastian Wiesner <lunaryorn googlemail com>
+# Contributor: Benjamin Andresen <benny(at)klapmuetz(dot)org>
+# Sylvester Johansson <syljo361(at)gmail(dot)org>
+pkgname=ocaml-ounit
+pkgver=1.1.0
+pkgrel=4
+arch=('i686' 'x86_64')
+license=('MIT')
+pkgdesc="Unit testing framework for OCaml"
+url="http://ounit.forge.ocamlcore.org/index.php"
+depends=('ocaml')
+makedepends=('ocaml-findlib')
+options=('!strip')
+source=("https://forge.ocamlcore.org/frs/download.php/495/ounit-${pkgver}.tar.gz")
+md5sums=('bf82bd7f8853cd9a1aff7be716192643')
+
+_OCAMLFIND_DESTDIR="${pkgdir}/usr/lib/ocaml"
+
+build() {
+ cd "${srcdir}/ounit-${pkgver}"
+ ocaml setup.ml -configure --destdir "${pkgdir}"
+ ocaml setup.ml -build
+}
+
+package() {
+ cd "${srcdir}/ounit-${pkgver}"
+ mkdir -p $_OCAMLFIND_DESTDIR
+ env OCAMLFIND_DESTDIR=$_OCAMLFIND_DESTDIR \
+ ocaml setup.ml -install
+ install -Dm 644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE.txt
+}