1 # Maintainer: Serge Ziryukin <ftrvxmtrx@gmail.com>
3 pkgname=ocaml-postgresql
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 conflicts=('postgresql-ocaml')
13 source=(http://hg.ocaml.info/release/postgresql-ocaml/archive/release-${pkgver}.tar.bz2)
14 md5sums=('f6a07ff34347a1ad552c1f663f7e90ed')
16 _pkgdir="postgresql-ocaml-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/ocaml-postgresql/html"
27 install -t "${pkgdir}/usr/share/doc/ocaml-postgresql/html" doc/postgresql/html/*
28 install -T doc/postgresql/latex/doc.pdf "${pkgdir}/usr/share/doc/ocaml-postgresql/ocaml-postgresql.pdf"