summaryrefslogtreecommitdiff
path: root/community/ocaml-ounit
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/ocaml-ounit
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/ocaml-ounit')
-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
+}