summaryrefslogblamecommitdiff
path: root/user/sshfs/APKBUILD
blob: c6fe305e9e86ad0496a6f0c895e15ecb5811048a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                                                    
            





                                                                                 
                                    
                                                             


                                                                                                       




















                                                                                    

                                                 
                                                                                                                                                                 
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=sshfs
pkgver=3.6.0
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"
#checkdepends="py3-pytest cmd:which"
makedepends="fuse3-dev glib-dev meson coreutils py3-docutils"
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="fe34d7bbb76bea6aedf96b4ce7500ad6d81230cca9a43b831302159e5926797a243b7d1675d23ba101057ef247f64ad7df18a73d20578e84b9524218d9ff97bd  sshfs-3.6.0.tar.xz"