aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2017-11-10 10:42:12 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2017-11-10 10:42:12 +0000
commit90295c58216a41ab375fec1258cf7565e91643a8 (patch)
treef69811984e44757e8d325632b6da2b2c26d10276 /main
parente023db2355003ad8373eba245ff1f92c31900f49 (diff)
downloadaports-90295c58216a41ab375fec1258cf7565e91643a8.tar.bz2
aports-90295c58216a41ab375fec1258cf7565e91643a8.tar.xz
main/cadaver: fix src and add check
Diffstat (limited to 'main')
-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