aboutsummaryrefslogtreecommitdiffstats
path: root/main/cadaver/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/cadaver/APKBUILD')
-rw-r--r--main/cadaver/APKBUILD35
1 files changed, 18 insertions, 17 deletions
diff --git a/main/cadaver/APKBUILD b/main/cadaver/APKBUILD
index 7af40db8a0..e4f6102088 100644
--- a/main/cadaver/APKBUILD
+++ b/main/cadaver/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=cadaver
pkgver=0.23.3
-pkgrel=2
+pkgrel=3
pkgdesc="Cadaver is a command line webDAV client for Linux"
url="http://webdav.org/cadaver/"
arch="all"
@@ -12,39 +12,40 @@ depends_dev=""
makedepends="libproxy-dev libressl-dev neon-dev expat-dev"
install=""
subpackages="$pkgname-doc"
-source="http://webdav.org/cadaver/${pkgname}-${pkgver}.tar.gz
+source="http://distfiles.alpinelinux.org/distfiles/${pkgname}-${pkgver}.tar.gz
neon.patch
disable-nls.patch"
-_builddir=${srcdir}/${pkgname}-${pkgver}
+builddir=${srcdir}/${pkgname}-${pkgver}
+
prepare() {
- local i
- cd "$_builddir"
- update_config_sub || return 1
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ cd "$builddir"
+ update_config_sub
+ default_prepare
}
build() {
- cd "$_builddir"
- ./configure \
+ cd "$builddir"
+ ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--with-ssl \
--with-expat \
--with-neon \
- --disable-nls \
- || return 1
+ --disable-nls
make
}
+check() {
+ msg "Running testsuites..."
+ "$builddir"/cadaver --help > /dev/null || ret=$?
+ [ $ret = 255 ]
+}
+
package() {
- cd "$_builddir"
- make prefix=$pkgdir/usr install
+ cd "$builddir"
+ make prefix=$pkgdir/usr install
}
md5sums="502ecd601e467f8b16056d2acca39a6f cadaver-0.23.3.tar.gz