1 # Maintainer: Serge Ziryukin <ftrvxmtrx@gmail.com>
3 pkgname=postgresql-ocaml
6 pkgdesc="OCaml interface to the PostgreSQL database"
8 url=("http://www.ocaml.info/home/ocaml_sources.html")
10 depends=('ocaml' 'ocaml-findlib' 'postgresql')
11 makedepends=('ocaml' 'texlive-core' 'texlive-latexextra' 'ghostscript')
12 source=(http://hg.ocaml.info/release/postgresql-ocaml/archive/release-${pkgver}.tar.bz2)
13 md5sums=('cf76ab4f3097ed0c7ef34a861ad6a3d1')
14 install=postgresql-ocaml.install
16 _pkgdir="${pkgname}-release-${pkgver}"
19 OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)"
21 cd "${srcdir}/${_pkgdir}"
23 make all doc || return 1
24 mkdir -p "${OCAMLFIND_DESTDIR}/stublibs"
25 DESTDIR="${pkgdir}" OCAMLFIND_DESTDIR="${OCAMLFIND_DESTDIR}" make install || return 1
26 install -d -m 0755 "${pkgdir}/usr/share/doc/postgresql-ocaml/html"
27 install -t "${pkgdir}/usr/share/doc/postgresql-ocaml/html" doc/postgresql/html/*
28 install -T doc/postgresql/latex/doc.pdf "${pkgdir}/usr/share/doc/postgresql-ocaml/postgresql-ocaml.pdf"