summaryrefslogtreecommitdiffstats
path: root/abs/extra/ocaml-result/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2019-02-21 14:24:04 (GMT)
committerBritney Fransen <brfransen@gmail.com>2019-02-21 14:24:04 (GMT)
commitd57708c66ea3810df4b482ab2fb965794127ae29 (patch)
tree3b8aa52a717e297d8a1eefbdba12fff1f932ba3c /abs/extra/ocaml-result/PKGBUILD
parentbcfef3ca58aaa0d6af005129eebf1583162d09a1 (diff)
downloadlinhes_pkgbuild-d57708c66ea3810df4b482ab2fb965794127ae29.zip
linhes_pkgbuild-d57708c66ea3810df4b482ab2fb965794127ae29.tar.gz
linhes_pkgbuild-d57708c66ea3810df4b482ab2fb965794127ae29.tar.bz2
ocaml-result: dep of ocaml-topkg
Diffstat (limited to 'abs/extra/ocaml-result/PKGBUILD')
-rw-r--r--abs/extra/ocaml-result/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/abs/extra/ocaml-result/PKGBUILD b/abs/extra/ocaml-result/PKGBUILD
new file mode 100644
index 0000000..fe58323
--- /dev/null
+++ b/abs/extra/ocaml-result/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Jürgen Hötzel <juergen@archlinux.org>
+
+_pkgname=result
+pkgname=ocaml-${_pkgname}
+pkgver=1.3
+pkgrel=2
+pkgdesc="Compatibility Result module"
+arch=('i686' 'x86_64' 'armv7h')
+url="https://github.com/janestreet/result"
+license=('BSD')
+depends=('ocaml')
+makedepends=('ocaml-findlib' 'dune')
+options=('!strip')
+source=("https://github.com/janestreet/result/archive/${pkgver}.tar.gz")
+sha256sums=('47a4a7abca084ac844716b047d4b26eacbd96174034c8836f35cd400e84c8db4')
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ jbuilder build
+}
+
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ install -dm755 "${pkgdir}$(ocamlfind printconf destdir)"
+ jbuilder install --prefix "${pkgdir}/usr" \
+ --libdir "${pkgdir}$(ocamlfind printconf destdir)"
+
+ install -Dm644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+ mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
+}