### this file is sourced not run
PKGVER=0.31.2
PKGBUILD=1
PKGARCH=x86_64

# source: post BLFS 7.8 6-17-2018
TARBALL=neon-$PKGVER.tar.gz
MD5SUM=c871268f0ba365b71f1ec1bf068d6ab3
SRC_URL=https://fossies.org/linux/www/$TARBALL
BUNDLE=

SLACKREQ='expat openssl'
SLACKDESC="libneon: libneon $PKGVER (HTTP and WebDAV client library)  
libneon:  
libneon: libneon is an HTTP and WebDAV client library, with a C interface.  
libneon: 
libneon: 
libneon: 
libneon: 
libneon: 
libneon: 
libneon: 
libneon:  
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/neon*
	# BLFS 7.8 patch for newer gnutls 3.4
	sed -e 's/client_set/set/'  \
		-e 's/gnutls_retr/&2/'  \
		-e 's/type = t/cert_&/' \
		-i src/ne_gnutls.c &&
	
	CONFFLAGS="$CONFFLAGS --enable-shared --with-ssl --disable-static \
		--with-ca-bundle=/etc/ssl/ca-bundle.crt --with-expat" # or --with-libxml2 or --with-ssl=gnutls

	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	
	# multilib
	mv -v /usr/bin/neon-config{,-64} &&
	ln -sfv multiarch_wrapper /usr/bin/neon-config

}


