diff options
author | Jakob Gahde | 2018-06-28 01:26:51 +0200 |
---|---|---|
committer | Jakob Gahde | 2018-06-28 01:26:51 +0200 |
commit | 62572e7f67bd97b2d7efaa049ff8819403a50c97 (patch) | |
tree | a50dbee7f2e54a9f64295f9cb3d649717b0d2031 | |
download | aur-62572e7f67bd97b2d7efaa049ff8819403a50c97.tar.gz |
ocaml-compiler-libs-repackaged 0.11.0-1: New package
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..411a0dc1a9b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +# Generated by mksrcinfo v8 +# Wed Jun 27 23:26:09 UTC 2018 +pkgbase = ocaml-compiler-libs-repackaged + pkgdesc = OCaml compiler libraries repackaged + pkgver = 0.11.0 + pkgrel = 1 + url = https://github.com/janestreet/ocaml-compiler-libs + arch = x86_64 + license = Apache + makedepends = dune + depends = ocaml + options = !strip + source = https://ocaml.janestreet.com/ocaml-core/v0.11/files/ocaml-compiler-libs-v0.11.0.tar.gz + md5sums = e170c16186aa55b7e8b11e461418a10a + +pkgname = ocaml-compiler-libs-repackaged + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..bd887474201 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Jakob Gahde <j5lx@fmail.co.uk> + +pkgname=ocaml-compiler-libs-repackaged +pkgver=0.11.0 +pkgrel=1 +pkgdesc="OCaml compiler libraries repackaged" +arch=('x86_64') +url='https://github.com/janestreet/ocaml-compiler-libs' +license=('Apache') +depends=('ocaml') +makedepends=('dune') +options=('!strip') +source=("https://ocaml.janestreet.com/ocaml-core/v$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/ocaml-compiler-libs-v${pkgver}.tar.gz") +md5sums=('e170c16186aa55b7e8b11e461418a10a') + +build() { + cd "${srcdir}/ocaml-compiler-libs-v${pkgver}" + + jbuilder build +} + + +package() { + cd "${srcdir}/ocaml-compiler-libs-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/" +} |