# Maintainer: Natanael Copa pkgname=fuse pkgver=2.9.7 pkgrel=1 pkgdesc="A library that makes it possible to implement a filesystem in a userspace program." url="https://github.com/libfuse/" arch="all" license="LGPL-2.0-only GPL-2.0-only" depends= makedepends="gettext-dev" install= subpackages="$pkgname-dev $pkgname-doc" source="https://github.com/libfuse/libfuse/releases/download/fuse-$pkgver/fuse-$pkgver.tar.gz fix-realpath.patch fuse.initd" options="suid !check" # No test suite. builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" UDEV_RULES_PATH='/lib/udev/rules.d' ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-static \ --enable-shared \ --disable-example \ --enable-lib \ --enable-util \ --bindir=/bin make } package() { cd "$builddir" make DESTDIR="$pkgdir" 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="f47304d9c7a1815f7a2905b7bdb7785d4c10292a80c8dc1ec45d895af96bc6ffd6d84ff2617bd976a1d0867ab8ec1a404a5a05ace85a69ecca830f371d08f8e2 fuse-2.9.7.tar.gz 5672ceb35acabb4bd97b6efc30614f22def62882fe198e2a8598a074d45b6b5337c082a5e09b5e399b6e5212dc1fbde9071c2a5051534c32091444c350b9c657 fix-realpath.patch 7f6a503ef23cfa8b809c544375c2d83ad56525269b48ad1a7dff0ce36f4bf2f2a3fafed9dc70a71ff6281b261db5f01829e16c06f041921a5d8c8d715a04a8c1 fuse.initd"