# Maintainer: Natanael Copa pkgname=fuse3 pkgver=3.15.1 pkgrel=0 pkgdesc="Reference implementation of the Linux FUSE (Filesystem in Userspace) interface" url="https://github.com/libfuse/libfuse" arch="all" license="GPL-2.0-only AND LGPL-2.1-only" depends="fuse-common" makedepends=" eudev-dev gettext-dev linux-headers meson " checkdepends="py3-pytest" subpackages=" $pkgname-static $pkgname-dev $pkgname-doc $pkgname-libs fuse-common:_common fuse-openrc:_openrc " source="https://github.com/libfuse/libfuse/releases/download/fuse-$pkgver/fuse-$pkgver.tar.gz fuse.initd " options="suid !check" # check is currently broken: https://github.com/libfuse/libfuse/issues/293 builddir="$srcdir"/fuse-$pkgver # secfixes: # 3.2.5-r0: # - CVE-2018-10906 build() { abuild-meson \ -Dinitscriptdir="" \ --default-library=both \ . output meson compile -C output } check() { python3 -m pytest test/ } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output # shellcheck disable=2115 rm -r "$pkgdir"/dev 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_ } _common() { pkgdesc="Common files for fuse2 and fuse3" amove etc/fuse.conf } _openrc() { default_openrc install_if="openrc fuse-common=$pkgver-r$pkgrel" } sha512sums=" 927132acff5f313257b39a487d2bb1cb47a4e2a71b49ffc2a2d3428cea22f7c57d133fe93fefc943fec8271802ecd1ddbd43e5e1f534b8ddf2036c1039902ffd fuse-3.15.1.tar.gz 7f6a503ef23cfa8b809c544375c2d83ad56525269b48ad1a7dff0ce36f4bf2f2a3fafed9dc70a71ff6281b261db5f01829e16c06f041921a5d8c8d715a04a8c1 fuse.initd "