# Contributor: Natanael Copa # Maintainer: Max Rees pkgname=sshfs pkgver=3.5.2 pkgrel=0 pkgdesc="FUSE client based on the SSH File Transfer Protocol" url="https://github.com/libfuse/sshfs" arch="all" options="!check" # Requires fuse kernel module to be loaded and local ssh server license="GPL-2.0-only AND GPL-2.0+ AND LGPL-2.1-only" depends="openssh-client" makedepends="fuse3-dev glib-dev meson coreutils py3-docutils" #checkdepends="py3-pytest cmd:which" subpackages="$pkgname-doc" source="https://github.com/libfuse/$pkgname/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.xz" build() { # NOTE: --prefix=/ is intentional. If --prefix=/usr, mount(8) will not be # able to find mount.fuse.sshfs or mount.sshfs - it only looks in /sbin, not # /usr/sbin. The omission of the absolute slash in --mandir=usr/share/man is # also intentional - otherwise ninja tries to install the manpage to # "/sr/share/man/man1" (???) meson \ --prefix=/ \ --sysconfdir=/etc \ --mandir=usr/share/man \ --localstatedir=/var \ --buildtype=release \ . output ninja -C output } check() { cd "$builddir"/output python3 -m pytest test/ } package() { DESTDIR="$pkgdir" ninja -C output install } sha512sums="52f874196eef2327dfb11c7f6a9771c1837a89a9208e6503dd7bb839e63d65b3f42d61c2d9140c8100041794923c1bea1f6917ff04b3c1d0236071ff4811c272 sshfs-3.5.2.tar.xz"