updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ocaml-gettext / PKGBUILD
blobde9c2b2ff83d1e1ea684c3a2fe7928cbd58c2f52
1 #Contributor: serp <serp256 at gmail dot com>
2 pkgname=ocaml-gettext
3 pkgver=0.3.3
4 pkgrel=1
5 pkgdesc="Ocaml wrapper around gettext"
6 arch=('i686' 'x86_64')
7 url="http://le-gall.net/sylvain+violaine/ocaml-gettext.html"
8 license=('AS-IS')
9 depends=('gettext' 'ocaml>=3.10.0' 'ocaml-findlib' 'ocaml-camomile>=0.8.0' 'ocaml-fileutils' 'docbook-xml' 'docbook-xsl')
10 source=(camomile.patch http://le-gall.net/sylvain+violaine/download/$pkgname-$pkgver.tar.gz)
11 md5sums=('6aeba340ae303a910cdcbe6ac4b74a0f' 'f1105a62770e6175490e79b803d59e0c')
13 build() {
14   cd "${srcdir}/${pkgname}-${pkgver}"
15   patch -p0 -i ../camomile.patch
16   sed -i "s%schema/dtd/4.3%docbook/xml-dtd-4.3%" doc/*.xml
17   sed -i "s/cd test.*//" Makefile
18   ./configure --prefix /usr --exec-prefix=$pkgdir \
19         --docdir=$pkgdir/usr/share/doc/ocaml-gettext \
20         --mandir=$pkgdir/usr/share/man \
21         --with-docbook-stylesheet=/usr/share/xml/docbook/xsl-stylesheets-1.76.1/
22   make -C libgettext-ocaml all
23   make -C libgettext-stub-ocaml all
24   make -C libgettext-camomile-ocaml all
25   make -C libgettext-camomile-ocaml all
26   make -C ocaml-gettext all
27   make -C doc all
30 package() {
31   mkdir -p "$pkgdir/$(ocamlfind printconf destdir)"
32   mkdir -p "$pkgdir/$(ocamlfind printconf destdir)/stublibs"
33   cd "${srcdir}/${pkgname}-${pkgver}"
34   export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"
35   make -C libgettext-ocaml install
36   make -C libgettext-stub-ocaml install
37   make -C libgettext-camomile-ocaml install
38   make -C ocaml-gettext install
39   make -C doc install