# Template file for 'neon'
pkgname=neon
version=0.29.6
revision=3
build_style=gnu-configure
configure_args="--with-expat --with-ssl=openssl --enable-shared
 --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt --disable-static"
makedepends="expat-devel openssl-devel>=1.0.1 mit-krb5-devel libproxy-devel
 ca-certificates"
short_desc="HTTP and WebDAV client library, with a C interface"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.webdav.org/neon/"
license="LGPL-2.1"
distfiles="http://www.webdav.org/neon/neon-$version.tar.gz"
checksum=9c640b728d6dc80ef1e48f83181166ab6bc95309cece5537e01ffdd01b96eb43
long_desc="
 Features:

  * High-level wrappers for common HTTP and WebDAV operations
    (GET, MOVE, DELETE, etc)
  * Low-level interface to the HTTP request/response engine, allowing the use
    of arbitrary HTTP methods, headers, etc.
  * Authentication support including Basic and Digest support, along with
    GSSAPI-based Negotiate on Unix, and SSPI-based Negotiate/NTLM on Win32
  * SSL/TLS support using OpenSSL or GnuTLS; exposing an abstraction layer
    for verifying server certificates, handling client certificates, and
    examining certificate properties. Smartcard-based client certificates are
    also supported via a PKCS#11 wrapper interface.
  * Abstract interface to parsing XML using libxml2 or expat, and wrappers for
    simplifying handling XML HTTP response bodies
  * WebDAV metadata support; wrappers for PROPFIND and PROPPATCH to simplify
    property manipulation."

neon-devel_package() {
	depends="expat-devel openssl-devel neon>=${version}"
	short_desc="${short_desc} - development files"
	pkg_install() {
		vmove usr/bin
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/share/doc
		vmove usr/share/man
	}
}

neon_package() {
	depends="ca-certificates"
	pkg_install() {
		vmove usr
	}
}
