blob: a7a42709337bf67370eaf1b9cfc93a1cac67120f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Manuel Wiesinger <m {you know what belongs here} mmap {and here} at>
# Contributor: Eric Fung <loseurmarbles[at]gmail[dot]com>
# Contributor: Jakob Gahde <j5lx@fmail.co.uk>
# Contributor: Leonard de Ruijter <leonard@aur.archlinux.org>
# Contributor: Serge Zirukin <ftrvxmtrx@gmail.com>
# Contributor: Sergei Lebedev <superbobry@gmail.com>
# Contributor: Magnus Therning <magnus@therning.org>
_ocamlname=pcre
pkgname=ocaml-$_ocamlname
pkgver=8.0.3
pkgrel=1
pkgdesc="Perl compatible regular expressions for OCaml"
arch=('x86_64')
url="http://mmottl.github.io/pcre-ocaml"
license=('LicenseRef-LGPL2.1-with-OCaml-LGPL-linking-exception')
depends=('glibc' 'ocaml-base' 'ocaml-findlib' 'pcre')
makedepends=('dune' 'ocaml-ounit')
provides=('pcre-ocaml')
replaces=('pcre-ocaml')
conflicts=('pcre-ocaml')
options=('!strip' 'staticlibs' '!debug')
source=("$pkgname-$pkgver.tar.gz::https://github.com/mmottl/pcre-ocaml/releases/download/${pkgver}/pcre-${pkgver}.tbz")
b2sums=('0df11589bb803d3bf6d2f3172bf3f9e3d0856749a3e7f18c24920e909e35eff935f5e3ec5a00c2f4e0240de672ec53dc45093fb1b10a580baf42bf87f38ca866')
build() {
cd "${srcdir}/pcre-${pkgver}"
export OCAMLPATH="$(ocamlfind printconf destdir)"
dune build -p $_ocamlname
}
check() {
cd "${srcdir}/pcre-${pkgver}"
dune runtest --verbose
}
package() {
cd "${srcdir}/pcre-${pkgver}"
dune install \
--destdir="${pkgdir}" \
--prefix="/usr" \
--docdir="/usr/share/doc" \
--libdir="$(ocamlfind printconf destdir)"
# TODO
# - doc needs an odoc package
mv "${pkgdir}/usr/share/doc/pcre" "${pkgdir}/usr/share/doc/${pkgname}"
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
mv "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}"
}
|