aboutsummaryrefslogtreecommitdiffstats
path: root/community/davfs2/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/davfs2/APKBUILD')
-rw-r--r--community/davfs2/APKBUILD67
1 files changed, 67 insertions, 0 deletions
diff --git a/community/davfs2/APKBUILD b/community/davfs2/APKBUILD
new file mode 100644
index 0000000000..293d7ad40d
--- /dev/null
+++ b/community/davfs2/APKBUILD
@@ -0,0 +1,67 @@
+# Contributor: Thomas Harning Jr. <harningt@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=davfs2
+pkgver=1.5.2
+pkgrel=2
+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="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"