updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / postgresql-ocaml / PKGBUILD
blob58fe466752821f830b700c39bc292d6e342c9fbd
1 # Maintainer: Serge Ziryukin <ftrvxmtrx@gmail.com>
3 pkgname=postgresql-ocaml
4 pkgver=1.16.0
5 pkgrel=2
6 pkgdesc="OCaml interface to the PostgreSQL database"
7 arch=('i686' 'x86_64')
8 url=("http://www.ocaml.info/home/ocaml_sources.html")
9 license=('LGPL')
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}"
18 build () {
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"