# fuse3 - Filesystem in userspace
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=fuse3
version=3.18.1
release=1
desc="Filesystem in userspace"
url="https://github.com/libfuse/libfuse"
license="LGPL-2.1-only GPL-2.0-only"
depend="glibc"
makedepend="meson ninja"
source="https://github.com/libfuse/libfuse/releases/download/fuse-3.18.1/fuse-3.18.1.tar.xz"
sha256="SKIP"

build() {
	cd "fuse-3.18.1"
	meson setup build \
		--prefix=/usr \
		--libdir=/usr/lib \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--buildtype=release \
		--wrap-mode=nodownload \
		-Db_lto=true
	ninja -C build -j"$JOBS"
}

package() {
	cd "fuse-3.18.1"
	DESTDIR="$pkgdir" ninja -C build install
}
