summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 10 insertions, 21 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 847dae8d4f8c..651ca8af4e2a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=google-drive-ocamlfuse
pkgver=0.7.30
pkgrel=1
pkgdesc='FUSE-based file system backed by Google Drive, written in OCaml'
-arch=('x86_64' 'i686')
+arch=('x86_64')
url='https://astrada.github.io/google-drive-ocamlfuse/'
license=('MIT')
depends=(
@@ -18,35 +18,24 @@ makedepends=(
'dune'
'ocaml-ounit'
)
-options=('staticlibs')
+options=('!strip' 'staticlibs')
source=("$pkgname-$pkgver.tar.gz::https://github.com/astrada/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('3fe3f0d4051f1a81e37f6da9e8a492eb3c81f7450c6b43fee81a7fd94249bfa0')
build() {
- cd ${srcdir}/${pkgname}-${pkgver}
+ cd "${srcdir}/${pkgname}-${pkgver}"
- # Old method requires ocamlbuild instead of jbuilder/dune
- #ocaml setup.ml -configure --prefix /usr --destdir "$pkgdir" --exec-prefix "/usr"
- #ocaml setup.ml -build
+ export OCAMLPATH="$(ocamlfind printconf destdir)"
- #dune build --debug-backtraces --debug-dependency-path --debug-findlib --no-buffer --verbose @install
- dune build @install
+ dune build -p "$pkgname"
}
-#check() {
-# cd "$srcdir/$pkgname-$pkgver"
-#
-# ocaml setup.ml -test
-#}
-
package() {
- cd ${srcdir}/${pkgname}-${pkgver}
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ dune install "$pkgname" --destdir="${pkgdir}" --prefix="/usr" --libdir="$(ocamlfind printconf destdir)"
- #export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"
- #ocaml setup.ml -install
+ install -dm755 "${pkgdir}/usr/share/"
- mkdir -p "$pkgdir/usr"
- mkdir -p "$pkgdir/$(ocamlfind printconf destdir)"
-
- dune install --prefix="$pkgdir/usr" --libdir="$pkgdir/$(ocamlfind printconf destdir)"
+ mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
}