aboutsummaryrefslogtreecommitdiffstats
path: root/community/davfs2/APKBUILD
blob: 01c1ed36d340c5b9d70aa38ab285e5ebdb7071a7 (plain) (blame)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Contributor: Thomas Harning Jr. <harningt@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=davfs2
pkgver=1.5.3
pkgrel=1
pkgdesc="Linux FUSE (or coda) driver that allows you to mount a WebDAV resource"
url="http://savannah.nongnu.org/projects/davfs2"
options="suid"
pkggroups="davfs2"
arch="all"
license="GPL3"
depends=""
depends_dev="libxml2-dev neon-dev zlib-dev linux-headers"
makedepends="$depends_dev autoconf automake libtool"
install="$pkgname.pre-install"
subpackages="$pkgname-doc"
source="http://mirror.lihnidos.org/GNU/savannah/davfs2/${pkgname}-${pkgver}.tar.gz
	010-main_code_fix.patch
	100-musl-compat.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	aclocal -I config \
	        && autoheader \
	        && automake --add-missing --force-missing --copy \
	        && autoconf || return 1
}

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
	install -o root -g davfs2 -m 1774 -d "$pkgdir"/var/run/mount.davfs
}

md5sums="ecff993c7972bd92e23c138b71f042b1  davfs2-1.5.3.tar.gz
461f7dcf6f45895fd5f5a888db757683  010-main_code_fix.patch
48ee49fc56364a18f33c5def5b3a859f  100-musl-compat.patch"
sha256sums="3c43db7e87ec5ce22a89b07d03e18ff1c6f18ffaa6b0ca1252339694528839f5  davfs2-1.5.3.tar.gz
64bec8dae275e44b36c8b00b0953afa3f8ae714ca918ce626ec80150952a8596  010-main_code_fix.patch
1ddddfde1110c155b1e0d2756a3310e13a35f6bd6e9a26ac8e3940b2fb5f0d20  100-musl-compat.patch"
sha512sums="1f8817742df471b062472699bc59aaed4fce7ae20766813f2ba151904898584af0cc09b28df3df00b0c29270a76cd13711edfe1723dc2009a86be0af9e04d650  davfs2-1.5.3.tar.gz
1d839b1435ae67209aae2501c1188880e991adece7b34b6b91d1fcba7390fd9d72d2aa7e057d03ed9f1519e682d0f0a8472c47ed64f78a25fe0f67c54a847ce3  010-main_code_fix.patch
44ce904db9e4efc48efdb74b791c2a5d135baa1272385906f85ea99fbf3254b010d6d1b4701091f784deebc0d2ebb3ca16a68c768e4af184b2504f31b7a65b3b  100-musl-compat.patch"