diff options
author | Jakob Gahde | 2018-06-28 18:59:06 +0200 |
---|---|---|
committer | Jakob Gahde | 2018-06-28 18:59:06 +0200 |
commit | 8966e84fa78bdb7763d37f2bd91f89080c70c0dc (patch) | |
tree | 82850ac6b297c484f5fd2ba18fa524ad3cbe2275 /PKGBUILD | |
parent | 34f85f72dc97fd5d8bbfbf2c73890f4569593d61 (diff) | |
download | aur-8966e84fa78bdb7763d37f2bd91f89080c70c0dc.tar.gz |
ocaml-ppx_optcomp 1:0.11.0-1: New version
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 12 insertions, 18 deletions
@@ -1,35 +1,29 @@ # Maintainer: Jakob Gahde <j5lx@fmail.co.uk> pkgname=ocaml-ppx_optcomp -pkgver=113.33.03 +pkgver=0.11.0 pkgrel=1 +epoch=1 pkgdesc="Optional compilation for OCaml" arch=('i686' 'x86_64') url="https://github.com/janestreet/ppx_optcomp" license=('Apache') -depends=('ocaml' 'ocaml-ppx_core' 'ocaml-ppx_tools') -makedepends=('ocaml-findlib' 'ocaml-js-build-tools' 'opam') +depends=('ocaml' 'ocaml-base' 'ocaml-stdio' 'ocaml-ppxlib') +makedepends=('dune') options=('!strip') -source=("https://ocaml.janestreet.com/ocaml-core/$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/${pkgname#ocaml-}-$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+\.[0-9]+").tar.gz" - "libdir.patch") -md5sums=('d7281106c873157e3d10f62be3db0367' - '7f0a951f1ac87385272ea7a6dd58762a') - -prepare() { - cd "${srcdir}/${pkgname#ocaml-}-${pkgver}" - - patch -Np1 < "${srcdir}/libdir.patch" -} +source=("https://ocaml.janestreet.com/ocaml-core/v$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/ppx_optcomp-v${pkgver}.tar.gz") +md5sums=('396d6bac4ed5652d7be146756613c67e') build() { - cd "${srcdir}/${pkgname#ocaml-}-${pkgver}" + cd "${srcdir}/ppx_optcomp-v${pkgver}" - ./configure --prefix=/usr - make + jbuilder build } package() { - cd "${srcdir}/${pkgname#ocaml-}-${pkgver}" + cd "${srcdir}/ppx_optcomp-v${pkgver}" - make install PREFIX="${pkgdir}/usr" LIBDIR="${pkgdir}$(ocamlc -where)" + install -dm755 "${pkgdir}$(ocamlfind -printconf destdir)" "${pkgdir}/usr/share" + jbuilder install --prefix "${pkgdir}/usr" --libdir "${pkgdir}$(ocamlfind -printconf destdir)" + mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/" } |