summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a5a4e3812c73d846a7abe632234d7df527407a5f (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
# Maintainer: Moritz Lipp <mlq@pwmt.org>
pkgname=google-drive-ocamlfuse
pkgver=0.5.18
pkgrel=1
pkgdesc="FUSE filesystem backed by Google Drive, written in OCaml."
arch=('x86_64' 'i686')
url="http://gdfuse.forge.ocamlcore.org/"
license=('MIT')
depends=('ocaml>=3.12.0' 'ocaml-findlib>=1.2.7' 'ocamlfuse>=2.7.1'
'gapi-ocaml>=0.2.6' 'ocaml-sqlite3>=1.6.1')
source=(https://github.com/astrada/$pkgname/archive/v$pkgver.tar.gz)
md5sums=('1db1573157a5c329477a4c38022a82bc')
options=('staticlibs')

build() {
	cd "$srcdir/$pkgname-$pkgver"
  ocaml setup.ml -configure --prefix /usr --destdir $pkgdir
  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
}