diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2019-02-12 09:55:48 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2019-02-12 09:55:48 +0100 |
commit | 0b72b7e523813358b39d76bd70088bce324e3bf9 (patch) | |
tree | b4408c1e9debb7be75e48ea744523561b978e38f /pcr/ocaml-sexplib0 | |
parent | 7f18daa151aad52ea70b464da28c8d0d0b59d026 (diff) | |
download | abslibre-0b72b7e523813358b39d76bd70088bce324e3bf9.tar.gz abslibre-0b72b7e523813358b39d76bd70088bce324e3bf9.tar.bz2 abslibre-0b72b7e523813358b39d76bd70088bce324e3bf9.zip |
pcr/ocaml-sexplib0: updated to 0.11.0
Diffstat (limited to 'pcr/ocaml-sexplib0')
-rw-r--r-- | pcr/ocaml-sexplib0/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pcr/ocaml-sexplib0/PKGBUILD b/pcr/ocaml-sexplib0/PKGBUILD new file mode 100644 index 000000000..d17fdfd22 --- /dev/null +++ b/pcr/ocaml-sexplib0/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer (AUR): Jakob Gahde <j5lx@fmail.co.uk> + +pkgname=ocaml-sexplib0 +pkgver=0.11.0 +pkgrel=1 +pkgdesc="Library containing the definition of S-expressions and some base converters" +arch=('x86_64') +arch+=('i686' 'armv7h') +url='https://github.com/janestreet/sexplib0' +license=('MIT') +depends=('ocaml') +makedepends=('dune') +options=('!strip') +source=("https://ocaml.janestreet.com/ocaml-core/v$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/sexplib0-v${pkgver}.tar.gz") +md5sums=('1c14ba30b471e49f1b23fea5ff99ea6b') + +build() { + cd "${srcdir}/sexplib0-v${pkgver}" + + jbuilder build +} + + +package() { + cd "${srcdir}/sexplib0-v${pkgver}" + + mkdir -p "${pkgdir}$(ocamlfind printconf destdir)" "${pkgdir}/usr/share" + jbuilder install --prefix "${pkgdir}/usr" --libdir "${pkgdir}$(ocamlfind printconf destdir)" + mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/" + install -Dm755 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" +} |