1 # Maintainer: Serge Ziryukin <ftrvxmtrx@gmail.com>
6 pkgdesc="SQLite3 bindings for OCaml"
8 url=("http://www.ocaml.info/home/ocaml_sources.html")
10 depends=('ocaml' 'ocaml-findlib' 'sqlite3')
12 source=(http://hg.ocaml.info/release/ocaml-sqlite3/archive/release-${pkgver}.tar.bz2
14 md5sums=('f51ef6ae3402ac28582d7c44b5b4f941'
15 '068b3ae114220b7820c9d9a8e5b56eee')
16 install=ocaml-sqlite3.install
19 _pkgdir="${pkgname}-release-${pkgver}"
22 OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)"
24 cd "${srcdir}/${_pkgdir}"
26 patch -Np1 -i ../install-fix.patch
27 ./configure --prefix=/usr || return 1
29 mkdir -p "${OCAMLFIND_DESTDIR}/stublibs"
30 DESTDIR="${pkgdir}" OCAMLFIND_DESTDIR="${OCAMLFIND_DESTDIR}" make install || return 1