summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2019-02-21 14:40:56 (GMT)
committerBritney Fransen <brfransen@gmail.com>2019-02-21 14:40:56 (GMT)
commit709dd54e6e1790f431b71c7e723746c06823a1b0 (patch)
tree1abfc0c0a6507e9a5dcc66d7e927f5eead4b025a
parente3efafdc0a0946dbde6f15622cc6a26c25101c2c (diff)
downloadlinhes_pkgbuild-709dd54e6e1790f431b71c7e723746c06823a1b0.zip
linhes_pkgbuild-709dd54e6e1790f431b71c7e723746c06823a1b0.tar.gz
linhes_pkgbuild-709dd54e6e1790f431b71c7e723746c06823a1b0.tar.bz2
ocaml-integers: dep of ocaml-ctypes
-rw-r--r--abs/extra/ocaml-integers/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/abs/extra/ocaml-integers/PKGBUILD b/abs/extra/ocaml-integers/PKGBUILD
new file mode 100644
index 0000000..52f6d29
--- /dev/null
+++ b/abs/extra/ocaml-integers/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Jürgen Hötzel <juergen@archlinux.org>
+
+pkgname=ocaml-integers
+pkgver=0.2.2
+pkgrel=2
+pkgdesc='Library for binding to C libraries using pure OCaml'
+arch=('i686' 'x86_64')
+url=https://github.com/ocamllabs/ocaml-integers
+license=('custom')
+options=('!strip')
+makedepends=('ocaml-topkg' 'ocaml-findlib' 'ocaml-compiler-libs' 'ocamlbuild' 'opam')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ocamllabs/$pkgname/archive/v$pkgver.tar.gz")
+md5sums=('f966342ad19682d4d5ade1e202388a81')
+
+
+build() {
+ cd ${pkgname}-$pkgver
+ make
+}
+
+package() {
+ cd ${pkgname}-$pkgver
+
+ opam-installer --prefix="${pkgdir}/usr" \
+ --libdir="${pkgdir}$(ocamlc -where)" \
+ --docdir="${pkgdir}/usr/share/doc" \
+ --stubsdir="${pkgdir}$(ocamlc -where)/stublibs"
+
+ install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}"/LICENSE.md
+}