# Maintainer: Natanael Copa pkgname=fuse3 _pkgname=fuse pkgver=3.2.0 pkgrel=1 pkgdesc="The reference implementation of the Linux FUSE (Filesystem in Userspace) interface" url="https://github.com/libfuse/libfuse/" arch="all" license="GPL-2.0" depends="!fuse" makedepends="gettext-dev linux-headers meson eudev-dev" subpackages="$pkgname-dev $pkgname-doc" source="https://github.com/libfuse/libfuse/releases/download/$_pkgname-$pkgver/$_pkgname-$pkgver.tar.xz fix-realpath.patch fuse.initd" options="suid" builddir="$srcdir"/$_pkgname-$pkgver build() { cd "$builddir" meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=release \ . output ninja -C output } package() { cd "$builddir" DESTDIR="$pkgdir" ninja -C output install rm -r "$pkgdir"/dev "$pkgdir"/etc/init.d install -Dm755 "$srcdir"/fuse.initd "$pkgdir"/etc/init.d/fuse # create config install -d "$pkgdir"/etc cat >"$pkgdir"/etc/fuse.conf << _EOF_ # Set the maximum number of FUSE mounts allowed to non-root users. # The default is 1000. # #mount_max = 1000 # Allow non-root users to specify the 'allow_other' or 'allow_root' # mount options. # #user_allow_other _EOF_ } sha512sums="43f6bb6e40b797c82e156608f5b8d6fea7b71d63b17d3eb525c85c6437642991a352a76be6193b3f652a29b41d346949e946e6d3d5534ef4dbf4aa2caad21342 fuse-3.2.0.tar.xz 1a9e1d1e8a7b0778ffde328e4322c73b5d57ec98d52767c846d755cce861ab27989823a75b6c5f994432ddb77fa351dfa4a8f948c9467c5f7d5f471e4608358b fix-realpath.patch 7f6a503ef23cfa8b809c544375c2d83ad56525269b48ad1a7dff0ce36f4bf2f2a3fafed9dc70a71ff6281b261db5f01829e16c06f041921a5d8c8d715a04a8c1 fuse.initd"