aboutsummaryrefslogtreecommitdiffstats
path: root/main/sshfs/APKBUILD
blob: 8600a34e22156de1fc941cba4e8e0b16d0bf1d39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sshfs
pkgver=2.8
pkgrel=0
pkgdesc="FUSE client based on the SSH File Transfer Protocol"
url="https://github.com/libfuse/sshfs"
arch="all"
license="GPL"
depends="openssh-client"
makedepends="fuse-dev glib-dev automake autoconf"
subpackages="$pkgname-doc"
source="https://github.com/libfuse/${pkgname}/archive/${pkgname}_${pkgver}.tar.gz"

_builddir="$srcdir"/${pkgname}-${pkgname}_${pkgver}
prepare() {
	cd "$_builddir"
	autoreconf -fi || return 1
}

build () {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
	install -Dm644 AUTHORS ChangeLog README.md \
		"$pkgdir"/usr/share/doc/$pkgname/ || return 1
}

md5sums="73a058527eb8e6722a6a46bcf372ac8e  sshfs_2.8.tar.gz"
sha256sums="f4f771ba0230fd9bb673e1329035f3d4c3455648055c926eaa2274f5bc8d65c7  sshfs_2.8.tar.gz"
sha512sums="d6857ff7d46cae9204fb599d18017439140ff3f87c7a4d5121a15410b3ce239ff991b890c46ac68e28f193a45c3739afaf972e6e6f66b89654b14b84496957e2  sshfs_2.8.tar.gz"