Skip to content

Instantly share code, notes, and snippets.

@simonfxr
Forked from nerflad/ocaml-sqlite3 PKGBUILD
Last active November 7, 2018 02:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonfxr/1f45dd7eabac8eeab1fb0555a9e94692 to your computer and use it in GitHub Desktop.
Save simonfxr/1f45dd7eabac8eeab1fb0555a9e94692 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' 'ocaml-base' 'ocaml-stdio' 'ocaml-configurator')
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