updated on Tue Jan 24 00:00:24 UTC 2012
[aur-mirror.git] / ocaml-postgresql / PKGBUILD
blob5c40003ca9fc6d51f32186756a36844af1778fdd
1 # Maintainer: Serge Ziryukin <ftrvxmtrx@gmail.com>
3 pkgname=ocaml-postgresql
4 pkgver=1.18.0
5 pkgrel=1
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 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}"
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/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"