### this file is sourced not run
PKGVER=3.4.0
PKGBUILD=1
PKGARCH=x86_64

# source: post BLFS 8.2 updated to latest.
TARBALL=sshfs-$PKGVER.tar.xz
MD5SUM=8e21286ea577ba4b79fb4f8ad1c4cb5b
SRC_URL=https://github.com/libfuse/sshfs/releases/download/sshfs-$PKGVER/$TARBALL
BUNDLE=

SLACKREQ='libfuse3'
SLACKDESC="sshfs-fuse: sshfs-fuse $PKGVER (Remote filesystem over SSH)  
sshfs-fuse:  
sshfs-fuse: The Sshfs Fuse package contains a filesystem client based on the 
sshfs-fuse: SSH File Transfer Protocol. This is useful for mounting a remote 
sshfs-fuse: computer that you have ssh access to as a local filesystem. This 
sshfs-fuse: allows you to drag and drop files or run shell commands on the 
sshfs-fuse: remote files as if they were on your local computer.  
sshfs-fuse: 
sshfs-fuse: 
sshfs-fuse: 
sshfs-fuse: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	if [ $(uname -m) = "i686" ]; then
	  export CFLAGS+="-D_FILE_OFFSET_BITS=64";
	fi

	pkg_build_meson &&
	pkg_build_slackdesc &&

	# clean up
	ln -sfv ../usr/bin/sshfs /sbin/mount.sshfs      &&
	ln -sfv ../usr/bin/sshfs /sbin/mount.fuse.sshfs &&
	rm /usr/sbin/mount*sshfs
}


