blob: faa498121fdb0cf2b6c7e9f3cf1b11fd113c371d (
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: Natanael Copa <ncopa@alpinelinux.org>
pkgname=davfs2
pkgver=1.5.4
pkgrel=0
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="GPL-3.0"
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="c9f0b557275b7ec88fec751bf22f30cf davfs2-1.5.4.tar.gz
461f7dcf6f45895fd5f5a888db757683 010-main_code_fix.patch
48ee49fc56364a18f33c5def5b3a859f 100-musl-compat.patch"
sha256sums="c9c4e0f0912a782386216b2147eb9c36c47f193b8fcf3d637719e0b9fe7c96e0 davfs2-1.5.4.tar.gz
64bec8dae275e44b36c8b00b0953afa3f8ae714ca918ce626ec80150952a8596 010-main_code_fix.patch
1ddddfde1110c155b1e0d2756a3310e13a35f6bd6e9a26ac8e3940b2fb5f0d20 100-musl-compat.patch"
sha512sums="08550f171f4b196f55f3fb71c6c75ed24063f8a5afc31c52502d0c911cf7aca4da01f7a123269d410dadc497c44ef5a3573e455aca6eafe48eb86f18429b94b2 davfs2-1.5.4.tar.gz
1d839b1435ae67209aae2501c1188880e991adece7b34b6b91d1fcba7390fd9d72d2aa7e057d03ed9f1519e682d0f0a8472c47ed64f78a25fe0f67c54a847ce3 010-main_code_fix.patch
44ce904db9e4efc48efdb74b791c2a5d135baa1272385906f85ea99fbf3254b010d6d1b4701091f784deebc0d2ebb3ca16a68c768e4af184b2504f31b7a65b3b 100-musl-compat.patch"
|