1 #Contributor: serp <serp256 at gmail dot com>
5 pkgdesc="Ocaml wrapper around gettext"
7 url="http://le-gall.net/sylvain+violaine/ocaml-gettext.html"
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')
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
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