From 0bd4084100ee7eed8109003e672f1d052fa55d7a Mon Sep 17 00:00:00 2001 From: Kyle Nusbaum Date: Wed, 5 Jan 2022 13:34:47 +0000 Subject: [PATCH] New package: google-drive-ocamlfuse-0.7.27 --- srcpkgs/google-drive-ocamlfuse/template | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/google-drive-ocamlfuse/template diff --git a/srcpkgs/google-drive-ocamlfuse/template b/srcpkgs/google-drive-ocamlfuse/template new file mode 100644 index 00000000000000..2120f20d87c4c9 --- /dev/null +++ b/srcpkgs/google-drive-ocamlfuse/template @@ -0,0 +1,26 @@ +# Template file for 'google-drive-ocamlfuse' +pkgname=google-drive-ocamlfuse +version=0.7.27 +revision=1 +hostmakedepends="ocaml dune opam tar git rsync mercurial darcs pkg-config sqlite-devel libcurl-devel fuse-devel gmp-devel" +short_desc="FUSE Filesystem for Google Drive" +maintainer="Kyle Nusbaum " +license="MIT" +homepage="https://astrada.github.io/google-drive-ocamlfuse" +distfiles="https://github.com/astrada/google-drive-ocamlfuse/archive/refs/tags/v${version}.tar.gz" +checksum=15880680ec49e83252b6b1cdc128a8f58b157a62272a64f9d03acd03154e8efd +nocross="ocaml and dune do not support cross-compilation out-of-the-box" + +do_build() { + set -x + opam init -y + opam install -y camlidl cryptokit extlib gapi-ocaml ocamlfuse sqlite3 + eval $(opam env) + dune build @install +} + +do_install() { + dune install --prefix=/usr --destdir="$DESTDIR" \ + --mandir=/usr/share/man --docdir=/usr/share/doc + vlicense LICENSE +}