diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2018-01-25 08:31:15 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2018-01-25 08:33:25 +0100 |
commit | f001f8cfec20f0485e9556141c194c7c73b5756f (patch) | |
tree | 4b4b21ac9d59b3b753faa9093093b172a389373a | |
parent | f710428b65e69f553470e4fcdaf416e9b341e24e (diff) | |
download | abslibre-f001f8cfec20f0485e9556141c194c7c73b5756f.tar.gz abslibre-f001f8cfec20f0485e9556141c194c7c73b5756f.tar.bz2 abslibre-f001f8cfec20f0485e9556141c194c7c73b5756f.zip |
pcr/jbuilder: added
-rw-r--r-- | pcr/jbuilder/PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pcr/jbuilder/PKGBUILD b/pcr/jbuilder/PKGBUILD new file mode 100644 index 000000000..27fbbfd99 --- /dev/null +++ b/pcr/jbuilder/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer (AUR): Jakob Gahde <j5lx@fmail.co.uk> + +# parabola changes and rationale: +# - renamed tarball to avoid collisions + +pkgname=jbuilder +pkgver=1.0+beta14 +pkgrel=1 +pkgdesc="A composable build system for OCaml" +arch=('x86_64' 'i686' 'armv7h') +url="https://github.com/janestreet/jbuilder" +license=('Apache') +depends=('ocaml' 'opam') +optdepends=('ocaml-findlib') +makedepends=('clingo') +source=("$pkgname-$pkgver.tar.gz::https://github.com/janestreet/${pkgname}/archive/${pkgver}.tar.gz") +md5sums=('7c1e8fc5fd5aa36b72c3349ba2ff3162') + +prepare() { + export OPAMROOT="${srcdir}/.opam" + opam init -n +} + +build() { + cd "${srcdir}/dune-${pkgver/+/-}" + + make release +} + +package() { + cd "${srcdir}/dune-${pkgver/+/-}" + + export OPAMROOT="${srcdir}/.opam" + + install -dm755 "${pkgdir}$(ocamlc -where)" "${pkgdir}/usr/share" + make install INSTALL_ARGS="'--prefix=${pkgdir}/usr' '--libdir=${pkgdir}$(ocamlc -where)'" + + mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/" + mv "${pkgdir}/usr/man" "${pkgdir}/usr/share/" +} |