diff options
Diffstat (limited to 'pcr/ocaml-pcre/PKGBUILD')
-rw-r--r-- | pcr/ocaml-pcre/PKGBUILD | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/pcr/ocaml-pcre/PKGBUILD b/pcr/ocaml-pcre/PKGBUILD index 480b814a0..e44cdaa3c 100644 --- a/pcr/ocaml-pcre/PKGBUILD +++ b/pcr/ocaml-pcre/PKGBUILD @@ -9,33 +9,31 @@ # no changes. pkgname=ocaml-pcre -pkgver=7.2.3 -pkgrel=2 +pkgver=7.3.5 +pkgrel=1 pkgdesc="Perl compatible regular expressions for OCaml" arch=('i686' 'x86_64' 'armv7h') url="http://mmottl.github.io/pcre-ocaml" license=('LGPL') -depends=('pcre>=4.5') -makedepends=('ocaml-findlib' 'ocamlbuild') +depends=('ocaml' 'pcre') +makedepends=('dune' 'ocaml-base') replaces=('pcre-ocaml') conflicts=('pcre-ocaml') options=('!strip' 'staticlibs') -source=("https://github.com/mmottl/pcre-ocaml/releases/download/v$pkgver/pcre-ocaml-$pkgver.tar.gz") -md5sums=('90b503355160d7422a7c3ef1623e6444') +source=("https://github.com/mmottl/pcre-ocaml/releases/download/${pkgver}/pcre-${pkgver}.tbz") +sha512sums=('346a90a5ceb42459e28f483977d3a41533ab4b5bc4169a9cdfffd22b1d506240104621b831280995749b8982c53a4a533a06afca08ba58065d04263a13ec32c3') build() { - cd "${srcdir}/pcre-ocaml-${pkgver}" + cd "${srcdir}/pcre-${pkgver}" - ./configure --disable-debug --prefix /usr --destdir "${pkgdir}" - make all + dune build } package() { - cd "${srcdir}/pcre-ocaml-${pkgver}" + cd "${srcdir}/pcre-${pkgver}" - export OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)" - install -dm755 "${OCAMLFIND_DESTDIR}/stublibs" - make install - mv "${pkgdir}/usr/share/doc/pcre" "${pkgdir}/usr/share/doc/${pkgname}" - install -Dm644 COPYING.txt "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" + install -dm755 "${pkgdir}/$(ocamlfind -printconf destdir)" "${pkgdir}/usr/share" + dune install --prefix "${pkgdir}/usr" --libdir "${pkgdir}$(ocamlfind printconf destdir)" + mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/" + install -Dm644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md" } |