blob: 90f61c6cd60da7c1722171b873061f2957df3471 (
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
|
# 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>
pkgname=ocaml-pcre
pkgver=8.0.1
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')
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=('bd20af0ffe60d0f74374e8bbe0de4fba3bfe73e7517b23f13b22f65d4f350ffe5de21b2b32a74e5ef9047622ce5274f4760c9edf27cfb1594aff84d03194dec4')
build() {
cd "${srcdir}/pcre-${pkgver}"
export OCAMLPATH="$(ocamlfind printconf destdir)"
dune build @install
}
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}"
}
|