From 05a95be53c18fbae03598eeb25219501f37094c8 Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Mon, 22 Jan 2018 17:13:12 +0100 Subject: pcr/ocaml-result: added --- pcr/ocaml-result/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pcr/ocaml-result/PKGBUILD (limited to 'pcr/ocaml-result/PKGBUILD') diff --git a/pcr/ocaml-result/PKGBUILD b/pcr/ocaml-result/PKGBUILD new file mode 100644 index 000000000..5c5869902 --- /dev/null +++ b/pcr/ocaml-result/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer (AUR): Jakob Gahde + +# parabola changes and rationale: +# no changes. + +_pkgname=result +pkgname=ocaml-${_pkgname} +pkgver=1.2 +pkgrel=2 +pkgdesc="Compatibility Result module" +arch=('i686' 'x86_64' 'armv7h') +url="https://github.com/janestreet/result" +license=('BSD') +depends=('ocaml') +makedepends=('ocaml-findlib') +options=('!strip') +source=("https://github.com/janestreet/result/archive/${pkgver}.tar.gz") +sha256sums=('7cf7909f902994dc885ceae1983e4cda3665914c774f774604d076b89f76f7dd') + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + make -j1 +} + + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + export OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)" + mkdir -p "${OCAMLFIND_DESTDIR}" + make install + + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} -- cgit v1.2.3