Skip to content

Instantly share code, notes, and snippets.

@nerflad
Created September 10, 2018 05:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nerflad/208eedfa6180d97f8992b5ca25174eb1 to your computer and use it in GitHub Desktop.
Save nerflad/208eedfa6180d97f8992b5ca25174eb1 to your computer and use it in GitHub Desktop.
# 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