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

# source: post BLFS 7.8 2016-01-06
TARBALL=apr-$PKGVER.tar.bz2
MD5SUM=4e9769f3349fe11fc0a5e1b224c236aa
SRC_URL=http://archive.apache.org/dist/apr/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="libapr32: libapr32 $PKGVER (Apache Portable Runtime library)  
libapr32:  
libapr32: The Apache Portable Runtime (APR) is a supporting library for the 
libapr32: Apache web server. It provides a set of application programming 
libapr32: interfaces (APIs) that map to the underlying Operating System (OS). 
libapr32: Where the OS doesn't support a particular function, APR will provide 
libapr32: an emulation. Thus programmers can use the APR to make a program 
libapr32: portable across different platforms.  
libapr32: 
libapr32: This contains 32-bit version of the library.
libapr32:
"

### 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() {
	CONFFLAGS="$CONFFLAGS --disable-static \
		--with-installbuilddir=/usr/$LIBDIR/build"
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	
	# multilib
	mv -v /usr/bin/apr-1-config /tmp/apr-1-config-32
}


