summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b20f6d050b686b752a18db63ad0a3c11af5d15d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Tambet Arak <tambetarak+nospam@gmail.com>
# Contributor: 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.1
pkgrel=1
arch=('x86_64')
license=('MIT')
pkgdesc='SQLite3 bindings for OCaml'
url='https://github.com/mmottl/sqlite3-ocaml'
depends=('ocaml' 'ocaml-base' 'ocaml-stdio' 'sqlite3')
makedepends=('ocaml-findlib' 'dune')
options=()
source=("https://github.com/mmottl/sqlite3-ocaml/archive/${pkgver}.tar.gz")
md5sums=('70ffbf667411876e13071e85d6f20ca7')

build() {
  cd "$srcdir/$_pkgname-$pkgver"
  dune build @install
}

package() {
  cd "$srcdir/$_pkgname-$pkgver"

  mkdir -p "$pkgdir/usr"
  mkdir -p "$pkgdir/$(ocamlfind printconf destdir)"

  dune install --prefix="$pkgdir/usr" \
    --libdir="$pkgdir/$(ocamlfind printconf destdir)"
}