updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / ocaml-pcre / PKGBUILD
blobfc33833df1acf99abc54f5887004e3354461ccde
1 # Maintainer: Sergei Lebedev <superbobry@gmail.com>
2 # Contributor: Magnus Therning <magnus@therning.org>
3 pkgname=ocaml-pcre
4 pkgver=6.2.4
5 pkgrel=2
6 pkgdesc="Perl compatible regular expressions for OCaml"
7 arch=('i686' 'x86_64')
8 url="http://www.ocaml.info/home/ocaml_sources.html#toc18"
9 license=('LGPL')
10 depends=('ocaml' 'pcre>=4.5')
11 makedepends=('ocaml-findlib')
12 replaces=('pcre-ocaml')
13 conflicts=('pcre-ocaml')
14 source=(http://hg.ocaml.info/release/pcre-ocaml/archive/release-$pkgver.tar.bz2)
15 sha256sums=('6eecd521c16edec64218059f05ca76778cd0522908cc552c1d27de0fe724fbd7')
16 options=(!strip)
18 build() {
19   cd "$srcdir/pcre-ocaml-release-$pkgver"
20   make all htdoc
23 package() {
24   cd "$srcdir/pcre-ocaml-release-$pkgver"
25   export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)"
26   install -dm 755 "$OCAMLFIND_DESTDIR/stublibs"
27   make install
28   install -dDm755 "lib/doc/pcre/html" "$pkgdir/usr/share/doc/$pkgname"
29   install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"