Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Maintainer: oliver < a t > first . in-berlin . de
# Contributor: charlesthehawk at yahoo dot com
# Contributor: Serge Zirukin <ftrvxmtrx@gmail.com>
pkgname=ocaml-sqlite3
_pkgname=sqlite3-ocaml
pkgver=4.4.0
pkgrel=2
pkgdesc="SQLite3 bindings for OCaml"
arch=('i686' 'x86_64')
url="https://github.com/mmottl/sqlite3-ocaml"
license=('MIT')
depends=('ocaml' 'sqlite3' 'ocaml-sexplib0')
makedepends=('ocaml-findlib' 'ocamlbuild' 'jbuilder')
source=(https://github.com/mmottl/sqlite3-ocaml/archive/${pkgver}.tar.gz)
md5sums=('2956d5696d45229a470e0f6e7409c876')
options=('!makeflags' 'staticlibs')
_pkgdir="$_pkgname-$pkgver"
build () {
cd ${srcdir}/${_pkgname}-${pkgver}
make all
}
package() {
cd ${srcdir}/${_pkgname}-${pkgver}
cd _build/install/default/lib/sqlite3
INSTALLDIR="${pkgdir}$(ocamlfind printconf destdir)"
echo Install-Dir: ${INSTALLDIR}
mkdir -p "$INSTALLDIR"
chmod 755 "$INSTALLDIR"
# src/sqlite3-ocaml-4.4.0/_build/install/default/lib/sqlite3/
env DESTDIR=${pkgdir} \
OCAMLFIND_DESTDIR=${pkgdir}$(ocamlfind printconf destdir) \
OCAMLFIND_LDCONF=ignore \
ocamlfind install sqlite3 *
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.