updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ocaml-sqlite3 / PKGBUILD
blob928d0226a31afa044c235044f6b570dc31b3e3f8
1 # Maintainer: Serge Ziryukin <ftrvxmtrx@gmail.com>
3 pkgname=ocaml-sqlite3
4 pkgver=1.6.1
5 pkgrel=1
6 pkgdesc="SQLite3 bindings for OCaml"
7 arch=('i686' 'x86_64')
8 url=("http://www.ocaml.info/home/ocaml_sources.html")
9 license=('MIT')
10 depends=('ocaml' 'ocaml-findlib' 'sqlite3')
11 makedepends=('ocaml')
12 source=(http://hg.ocaml.info/release/ocaml-sqlite3/archive/release-${pkgver}.tar.bz2
13   install-fix.patch)
14 md5sums=('f51ef6ae3402ac28582d7c44b5b4f941'
15          '068b3ae114220b7820c9d9a8e5b56eee')
16 install=ocaml-sqlite3.install
17 options=(!makeflags)
19 _pkgdir="${pkgname}-release-${pkgver}"
21 build () {
22   OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)"
24   cd "${srcdir}/${_pkgdir}"
26   patch -Np1 -i ../install-fix.patch
27   ./configure --prefix=/usr || return 1
28   make all || return 1
29   mkdir -p "${OCAMLFIND_DESTDIR}/stublibs"
30   DESTDIR="${pkgdir}" OCAMLFIND_DESTDIR="${OCAMLFIND_DESTDIR}" make install || return 1