APKBUILD 1.8 KB
Newer Older
1
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
2
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
ScrumpyJack's avatar
ScrumpyJack committed
3 4
pkgname=cadaver
pkgver=0.23.3
5
pkgrel=4
ScrumpyJack's avatar
ScrumpyJack committed
6 7 8 9 10 11
pkgdesc="Cadaver is a command line webDAV client for Linux"
url="http://webdav.org/cadaver/"
arch="all"
license="GPL"
depends=""
depends_dev=""
12
makedepends="libproxy-dev neon-dev expat-dev"
ScrumpyJack's avatar
ScrumpyJack committed
13
install=""
14
subpackages="$pkgname-doc"
15
source="https://distfiles.alpinelinux.org/distfiles/${pkgname}-${pkgver}.tar.gz
16 17
	neon.patch
	disable-nls.patch"
ScrumpyJack's avatar
ScrumpyJack committed
18

19 20
builddir=${srcdir}/${pkgname}-${pkgver}

ScrumpyJack's avatar
ScrumpyJack committed
21
prepare() {
22 23 24
	cd "$builddir"
	update_config_sub
	default_prepare
ScrumpyJack's avatar
ScrumpyJack committed
25 26 27
}

build() {
28 29
        cd "$builddir"
	./configure \
30 31 32
		--build=$CBUILD \
		--host=$CHOST \
	        --prefix=/usr \
33 34 35
	        --with-ssl \
		--with-expat \
		--with-neon \
36
		--disable-nls
ScrumpyJack's avatar
ScrumpyJack committed
37 38 39
        make
}

40 41 42 43 44 45
check() {
	msg "Running testsuites..."
	"$builddir"/cadaver --help > /dev/null || ret=$?
	[ $ret = 255 ]
}

ScrumpyJack's avatar
ScrumpyJack committed
46
package() {
47 48
	cd "$builddir"
	make prefix=$pkgdir/usr install
ScrumpyJack's avatar
ScrumpyJack committed
49 50
}

51 52 53 54 55 56 57 58 59
md5sums="502ecd601e467f8b16056d2acca39a6f  cadaver-0.23.3.tar.gz
68729682dd854945fc20c32709be873e  neon.patch
f0f9c9ca1508ee7eee447b98bb49095e  disable-nls.patch"
sha256sums="fd4ce68a3230ba459a92bcb747fc6afa91e46d803c1d5ffe964b661793c13fca  cadaver-0.23.3.tar.gz
7042a16981f660cd0df6f1d21004dcebe7cdd23eea1d4c0b6a925f8dafaac222  neon.patch
51981dc5d272f294872af3a825c34c5a559eb7cb17d0801398747a1ebec406fc  disable-nls.patch"
sha512sums="48fe0a266be0ca7239f325377e5e2a8dc57a5d60466c7160e36c060ad24c09a50727695b9fa931844b1e66e173ebbb838f390d6c60fd07b614bd3b636cd4dd41  cadaver-0.23.3.tar.gz
dba57c355afda9552a890d53b32343f4532c441d7d654ea09b8ee6533a4d3a455a02327b393cf98228c4989622962d92b929a4c674919434b72ac285e5ced68c  neon.patch
58982830b63c9bf4c27455e2d0403489bfdda82e4d236841c877d49c7501865edb3438cdddfb77ef7e525c4a5edb34083d3af69824f0ba2dc7d5c3f7f69b50e5  disable-nls.patch"