-
-
Save simonfxr/1f45dd7eabac8eeab1fb0555a9e94692 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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