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

# source: BLFS 7.5
TARBALL=libarchive-$PKGVER.tar.gz
MD5SUM=4583bd6b2ebf7e0e8963d90879eb1b27
SRC_URL=http://www.libarchive.org/downloads/$TARBALL
BUNDLE=

SLACKREQ='bzip2_32 xz32 libnettle32 expat32' # liblzo2 build-time only
SLACKDESC="libarchive32: libarchive32 $PKGVER (archiver librari)  
libarchive32:  
libarchive32: The libarchive library provides a single interface for 
libarchive32: reading/writing various compression formats. Comes with these 
libarchive32: sample tools: bsdtar and bsdcpio.  
libarchive32: 
libarchive32: This contains 32-bit version of the library.
libarchive32: 
libarchive32: 
libarchive32: 
libarchive32:
"

### 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() {
	# use expat instead of libxml2, use nettle instead of openssl
	CONFFLAGS="$CONFFLAGS --disable-static --without-xml2 --without-openssl" 
	pkg_build_autoconf && pkg_build_slackdesc
}


