updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / ocaml-xml-light / PKGBUILD
blobe70d26e939fd89e8fe6dec256bc988c2c8afe978
1 # Maintainer: Thomas S Hatch <thatch45 (at) Gmail (dot) com>
3 pkgname=ocaml-xml-light
4 pkgver=2.2
5 pkgrel=2
6 license=('LGPL')
7 arch=('i686' 'x86_64')
8 pkgdesc="Objective Caml lightweight xml parser"
9 url="http://tech.motion-twin.com/xmllight.html"
10 depends=('ocaml')
11 makedepends=('ocaml-findlib')
12 options=('!strip')
13 source=("http://tech.motion-twin.com/zip/xml-light-${pkgver}.zip"
14         "META")
15 md5sums=('7658985cfdaeeb94b579b932eeaa3e00'
16          'ad22cde4d3a944673d3b0a25a1e835dc')
18 OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)"
19 DOCDIR="${pkgdir}/usr/share/doc/${pkgname}"
21 build() {
22   cd ${srcdir}/xml-light
23   echo -e "\nxml_parser.cmi:\n\tocamlc xml_parser.mli\n" >> Makefile
24   make all doc
25   make opt
28 package() {
29   cd ${srcdir}/xml-light
30   mkdir -p $OCAMLFIND_DESTDIR/stublibs
31   mkdir -p $DOCDIR
32   rm -rf test.cmi
33   cp ${srcdir}/META .
34   env DESTDIR="${pkgdir}" \
35     OCAMLFIND_DESTDIR="$OCAMLFIND_DESTDIR" \
36     ocamlfind install xml-light META *.mli *.cmi *.cma *.a *.cmxa *.cmx
37   cp doc/* $DOCDIR