summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-12 10:17:03 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-12 10:17:03 +0100
commitda846b92f63b5549441feb9781c0a91218004706 (patch)
treef13845bfbc80da05062014ee5323fb3b647945b3 /pcr
parente81a2320a7e2cac4b2988c6fbf6009cd8dc76e48 (diff)
downloadabslibre-da846b92f63b5549441feb9781c0a91218004706.tar.gz
abslibre-da846b92f63b5549441feb9781c0a91218004706.tar.bz2
abslibre-da846b92f63b5549441feb9781c0a91218004706.zip
pcr/ocaml-pcre: updated to 7.3.5
Diffstat (limited to 'pcr')
-rw-r--r--pcr/ocaml-pcre/PKGBUILD28
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"
}