summaryrefslogtreecommitdiff
path: root/libs/libfuse/MAKEPKG
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libfuse/MAKEPKG')
-rw-r--r--libs/libfuse/MAKEPKG47
1 files changed, 47 insertions, 0 deletions
diff --git a/libs/libfuse/MAKEPKG b/libs/libfuse/MAKEPKG
new file mode 100644
index 0000000..fd20877
--- /dev/null
+++ b/libs/libfuse/MAKEPKG
@@ -0,0 +1,47 @@
+#!/bin/mkpkg
+# description: Filesystem in Userspace (FUSE3) library
+# url: https://github.com/libfuse/libfuse
+name=libfuse
+version=3.18.3
+release=1
+depends=(udevd)
+source=(https://github.com/libfuse/libfuse/releases/download/fuse-$version/fuse-$version.tar.gz)
+
+sha256sums=(
+ "bcd19582c5e30f7fe45dd86a5540e998590aa01903afc7ebcbeea6c8ac5421ee"
+)
+
+build() {
+ cd fuse-$version
+
+ mkdir build && cd build
+ meson setup .. \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --buildtype=release \
+ -D examples=false \
+ -D tests=false \
+ -D useroot=false
+ ninja
+ DESTDIR=$PKG ninja install
+
+ # fusermount3 needs suid
+ chmod u+s $PKG/usr/bin/fusermount3
+
+ # Remove init script and udev rules (handled by system)
+ rm -rf $PKG/etc/init.d
+ rm -rf $PKG/usr/lib/udev
+
+ # Default config
+ install -dm755 $PKG/etc
+ printf '%s\n' \
+ '# Allow non-root users to specify the allow_other mount option' \
+ '#user_allow_other' \
+ > $PKG/etc/fuse.conf
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+# vim: filetype=sh