aboutsummaryrefslogtreecommitdiffstats
path: root/testing/davfs2/APKBUILD
blob: 45ca5bbaa963d88d7f132f51f55bc4e2e8ab567b (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
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:
pkgname=davfs2
pkgver=1.5.2
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="libxml2 neon zlib"
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
}

build() {
	cd "$_builddir"
    aclocal -I config \
        && autoheader \
        && automake --add-missing --force-missing --copy \
        && autoconf || return 1
	./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="376bc9346454135cba78afacbcb23f86  davfs2-1.5.2.tar.gz
15495a67412345c70e6b211fa8067350  010-main_code_fix.patch
48ee49fc56364a18f33c5def5b3a859f  100-musl-compat.patch"
sha256sums="be34a19ab57a6ea77ecb82083e9e4c1882e12b2de64257de567ad5ee7a17b358  davfs2-1.5.2.tar.gz
e546987cc6083ba2637206aab63e65d054c94bcb315db5ee5bf3774944dd7718  010-main_code_fix.patch
1ddddfde1110c155b1e0d2756a3310e13a35f6bd6e9a26ac8e3940b2fb5f0d20  100-musl-compat.patch"
sha512sums="c912049e23b76bda19c2ae2d07bc2b1da7ed9bf82b338c57c0f9fb8a3144cbbb52a0e8f8c2f8996342c7aa434470d062996c30bbbe0f1c6623c81af6414fbb45  davfs2-1.5.2.tar.gz
99ced4c7183540653b5eb3b9fc6afd06b3d959134c41c2c3a7d65460d6fe9766c9d7f2b774f3064f5e4fd86992fbf500c3e4386a0d814834eb40fb55041bc396  010-main_code_fix.patch
44ce904db9e4efc48efdb74b791c2a5d135baa1272385906f85ea99fbf3254b010d6d1b4701091f784deebc0d2ebb3ca16a68c768e4af184b2504f31b7a65b3b  100-musl-compat.patch"