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

# BLFS 7.5 updated to BLFS 8.2
TARBALL=gnutls-$PKGVER.tar.xz
MD5SUM=8b4912c6c0e5ffefd3dbb4888eaf8a58
SRC_URL=ftp://ftp.gnutls.org/gcrypt/gnutls/v3.6/$TARBALL
BUNDLE=

SLACKREQ='libtasn1_32 libnettle32 libgmp32 libidn2_32 libunistring32'
SLACKDESC="libgnutls32: libgnutls32 $PKGVER (TLS library)  
libgnutls32:  
libgnutls32: The GnuTLS package contains libraries and userspace tools which 
libgnutls32: provide a secure layer over a reliable transport layer. GnuTLS 
libgnutls32: provides support for TLS 1.1, TLS 1.0 and SSL 3.0 protocols, TLS 
libgnutls32: extensions, including server name and max record size. 
libgnutls32: 
libgnutls32: This contains 32-bit version of the library.
libgnutls32: 
libgnutls32: 
libgnutls32:
"

### 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 etc
}

### build
pkg_build() {
	cd /tmp/gnutls*
	export USE_ARCH=32 LIBDIR=lib
	
	CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
	PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
	./configure $CONFFLAGS --disable-static \
		--with-default-trust-store-file=/etc/ssl/ca-bundle.crt \
		--with-default-trust-store-dir=/etc/ssl/certs \
	    --with-default-trust-store-pkcs11=pkcs11: \
	    --build=$CLFS_TARGET32 --host=$CLFS_TARGET32 &&
	    #--without-p11-kit --with-included-unistring \
	make $MAKEFLAGS && make install &&\

	pkg_build_slackdesc
}


