diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2018-09-18 02:00:09 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2018-09-18 02:00:09 +0000 |
commit | 3eef3c84f5d830f3621d5326577f25bb925abca6 (patch) | |
tree | 33a61eeb7b2ccb634d670df35c35a0997c4f2f8e /user/sshfs/APKBUILD | |
parent | d079f866e1a31f54e0c3f3d76f2f5cc6380a77cb (diff) | |
parent | a13a5cba375dbb9b56d0df2d9f1a78d4709d50a8 (diff) | |
download | packages-3eef3c84f5d830f3621d5326577f25bb925abca6.tar.gz packages-3eef3c84f5d830f3621d5326577f25bb925abca6.tar.bz2 packages-3eef3c84f5d830f3621d5326577f25bb925abca6.tar.xz packages-3eef3c84f5d830f3621d5326577f25bb925abca6.zip |
Merge branch 'sshfs' into 'master'
Add fuse3, sshfs, and some undeclared dependencies for py3-pytest
See merge request !60
Diffstat (limited to 'user/sshfs/APKBUILD')
-rw-r--r-- | user/sshfs/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/user/sshfs/APKBUILD b/user/sshfs/APKBUILD new file mode 100644 index 000000000..404c077be --- /dev/null +++ b/user/sshfs/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Max Rees <maxcrees@me.com> +pkgname=sshfs +pkgver=3.5.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" +makedepends="fuse3-dev glib-dev meson coreutils py3-docutils" +#checkdepends="py3-pytest debianutils-which" +subpackages="$pkgname-doc" +source="https://github.com/libfuse/$pkgname/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.xz" + +build() { + cd "$builddir" + # 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() { + cd "$builddir" + DESTDIR="$pkgdir" ninja -C output install +} + +sha512sums="6ba7be4bcad401d99fb864f105a6c8fc8b7c832d5b25f18cba27eee422fe65ee7bda8982466d624792a1fb21528c0cb078a59db48e93da4880a36aad7b506b0c sshfs-3.5.0.tar.xz" |