### this file is sourced not run
PKGVER=0.32.5
PKGBUILD=1
PKGARCH=i686

# source: BLFS 11.3
TARBALL=neon-$PKGVER.tar.gz
MD5SUM=7976b1cd67b7228cddb7eb4f39640ac5
SRC_URL=https://notroj.github.io/neon/$TARBALL
BUNDLE=

SLACKREQ='expat32 openssl32'
SLACKDESC="libneon32: libneon32 $PKGVER (HTTP and WebDAV client library)  
libneon32:  
libneon32: libneon is an HTTP and WebDAV client library, with a C interface.  
libneon32: 
libneon32: This contains 32-bit version of the library.
libneon32:
libneon32: https://notroj.github.io/neon/
libneon32: 
libneon32: 
libneon32: 
libneon32:  
"

### default pkg_download
### default pkg_prepare
### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
	mkdir -p usr/bin &&
	mv -v tmp/*-32 usr/bin
}

### build
pkg_build() {
	cd /tmp/neon* &&
	
	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 /tmp/neon-config-32
}


