diff options
author | Britney Fransen <brfransen@gmail.com> | 2019-02-21 14:23:20 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2019-02-21 14:23:20 (GMT) |
commit | bcfef3ca58aaa0d6af005129eebf1583162d09a1 (patch) | |
tree | b73523e66ef5930f7f3f215d5a2a2e2bf9b31a57 | |
parent | 85133ec7a9c4b9b9e3f57ac5b25ca21a588e48a1 (diff) | |
download | linhes_pkgbuild-bcfef3ca58aaa0d6af005129eebf1583162d09a1.zip linhes_pkgbuild-bcfef3ca58aaa0d6af005129eebf1583162d09a1.tar.gz linhes_pkgbuild-bcfef3ca58aaa0d6af005129eebf1583162d09a1.tar.bz2 |
dune: dep of ocaml-result
-rw-r--r-- | abs/extra/dune/PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/abs/extra/dune/PKGBUILD b/abs/extra/dune/PKGBUILD new file mode 100644 index 0000000..90a7287 --- /dev/null +++ b/abs/extra/dune/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Bruno Pagani <archange@archlinux.org> +# Contributor: Jakob Gahde <j5lx@fmail.co.uk> + +pkgname=dune +pkgver=1.7.1 +pkgrel=1 +pkgdesc="A composable build system for OCaml (formerly jbuilder)" +arch=('x86_64') +url="https://github.com/ocaml/dune" +license=('Apache') +depends=('glibc' 'ocaml' 'ocaml-findlib') +provides=('jbuilder') +conflicts=('jbuilder') +replaces=('jbuilder') +source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/${pkgver}.tar.gz") +sha256sums=('b821a9aa08bb6a43ad77a1f5e51806129fd82e77af507df489ac95699451566b') + +build() { + cd ${pkgname}-${pkgver} + make release +} + +# Tests requires a bunch of (currently) unpackaged dependencies +#check() { +# cd ${pkgname}-${pkgver/b/-beta} +# make test +#} + +package() { + cd ${pkgname}-${pkgver} + + make DESTDIR="${pkgdir}" INSTALL_ARGS="--prefix=/usr --libdir='$(ocamlfind printconf destdir)'" install + + # Fix doc and man install + rm -r "${pkgdir}"/usr/doc + install -dm755 "${pkgdir}"/usr/share + mv "${pkgdir}"/usr/{man,share/} +} |