diff options
author | Oliver Bandel | 2015-07-22 18:03:04 +0200 |
---|---|---|
committer | Oliver Bandel | 2015-07-22 18:03:04 +0200 |
commit | 2c72bcf6d78aff735da12c517aeee28140338f91 (patch) | |
tree | 0285623ba9b405bf23b0f357a6473f180aa6d3c4 | |
download | aur-2c72bcf6d78aff735da12c517aeee28140338f91.tar.gz |
Initial package.
Initial package, adopted from Myshkin (at old AUR),
who didn't migrated this package to AUR4 so far.
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8b2e7d4d5264 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = ocaml-sqlite3 + pkgdesc = SQLite3 bindings for OCaml + pkgver = 2.0.9 + pkgrel = 1 + url = http://mmottl.github.io/sqlite3-ocaml + arch = i686 + arch = x86_64 + license = MIT + makedepends = ocaml + makedepends = ocaml-findlib + makedepends = sqlite3 + options = !makeflags + options = staticlibs + source = https://github.com/mmottl/sqlite3-ocaml/releases/download/v2.0.9/sqlite3-ocaml-2.0.9.tar.gz + md5sums = bb4f1b86e9b56822183b31ce1b97f349 + +pkgname = ocaml-sqlite3 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9f39e7cd9069 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# 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=2.0.9 +pkgrel=1 +pkgdesc="SQLite3 bindings for OCaml" +arch=('i686' 'x86_64') +url="http://mmottl.github.io/sqlite3-ocaml" +license=('MIT') +makedepends=('ocaml' 'ocaml-findlib' 'sqlite3') +source=("https://github.com/mmottl/sqlite3-ocaml/releases/download/v$pkgver/sqlite3-ocaml-$pkgver.tar.gz") +md5sums=('bb4f1b86e9b56822183b31ce1b97f349') +options=('!makeflags' 'staticlibs') + +_pkgdir="$_pkgname-$pkgver" + +build () { + cd "${srcdir}/${_pkgdir}" + + ./configure --disable-debug --prefix /usr --destdir "$pkgdir" + make all +} + +package() { + cd "${srcdir}/${_pkgdir}" + + export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)" + mkdir -p "${OCAMLFIND_DESTDIR}/stublibs" + make install + install -D -m644 COPYING.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -D -m644 _build/lib/sqlite3.a ${pkgdir}/usr/lib/ocaml/sqlite3/sqlite3.a + +} |