diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3e4b7f3b17be --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Moritz Lipp <mlq@pwmt.org> +pkgname=google-drive-ocamlfuse +pkgver=0.5.15 +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=('be8b34485e82c5db1fd4c4b6f5dfeb25') +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 +} |