### this file is sourced not run
PKGVER=2.9.7 # last fuse2. Next version is fuse3, latest autoconf version is fuse 3.1.1
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS 7.5 updated to BLFS 8.1
TARBALL=fuse-$PKGVER.tar.gz
MD5SUM=9bd4ce8184745fd3d000ca2692adacdb
SRC_URL=https://github.com/libfuse/libfuse/releases/download/fuse-$PKGVER/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="libfuse: libfuse $PKGVER (Filesystem in Userspace core library)  
libfuse:  
libfuse: FUSE (Filesystem in Userspace) is a simple interface for userspace 
libfuse: programs to export a virtual filesystem to the Linux kernel. Fuse 
libfuse: also aims to provide a secure method for non privileged users to 
libfuse: create and mount their own filesystem implementations.  
libfuse: 
libfuse: 
libfuse: 
libfuse: 
libfuse:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --disable-static --exec-prefix=/ \
		INIT_D_PATH=/tmp/init.d \
		--disable-mtab"
	pkg_build_autoconf &&
	
	# relocate from /usr/$LIBDIR to /$LIBDIR
	mv -v   /usr/$LIBDIR/libfuse.so.* /$LIBDIR &&
	ln -sfv ../../$LIBDIR/libfuse.so.$PKGVER /usr/$LIBDIR/libfuse.so &&
	rm -rf  /tmp/init.d &&

	install -v -m755 -d /usr/share/doc/fuse-$PKGVER &&
	install -v -m644    doc/{how-fuse-works,kernel.txt} \
                    /usr/share/doc/fuse-$PKGVER &&
                    
	pkg_build_slackdesc &&
	
	# default config - override in fatdog-scripts
	cat > /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

}


