summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 138a06923549e44718643e7fb710ad13d74b9c44 (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
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Christopher Price <pricechrispy at gmail dot com>
# Contributor: Moritz Lipp <mlq@pwmt.org>
pkgname=google-drive-ocamlfuse
pkgver=0.6.22
pkgrel=2
pkgdesc='FUSE-based file system backed by Google Drive, written in OCaml'
arch=('x86_64' 'i686')
url='https://astrada.github.io/google-drive-ocamlfuse/'
license=('MIT')
depends=(
'ocaml>=4.02.3'
'ocaml-findlib>=1.2.7'
'ocamlfuse>=2.7.1'
'gapi-ocaml>=0.3.5'
'ocaml-sqlite3>=1.6.1'
)
makedepends=(
'ocamlbuild'
'ocaml-ounit'
)
options=('staticlibs')
source=("https://github.com/astrada/$pkgname/archive/v$pkgver.tar.gz")
md5sums=('689f16d6b39fd451d550c71fcaa24761')

build() {
	cd "$srcdir/$pkgname-$pkgver"

	ocaml setup.ml -configure --prefix /usr --destdir "$pkgdir" --exec-prefix "/usr"

	ocaml setup.ml -build
}

check() {
	cd "$srcdir/$pkgname-$pkgver"

	ocaml setup.ml -test
}

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

	export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"

	ocaml setup.ml -install
}