# Description: Interface for userspace filesystems
# URL: https://github.com/libfuse/
# Maintainer: Juergen Daubert, jue at crux dot nu

name=fuse3
version=3.16.2
release=1
source=(https://github.com/libfuse/libfuse/archive/refs/tags/fuse-$version.tar.gz)

build() {
	meson setup build libfuse-fuse-$version \
		--prefix=/usr \
		--sysconfdir=/etc \
		--buildtype=plain \
		--wrap-mode nodownload \
		-D b_lto=true \
		-D b_pie=true

	meson compile -C build -j ${JOBS:-1}
	DESTDIR=$PKG meson install -C build

	rm -r $PKG/{dev,etc,lib}
}
