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

# source: post BLFS 7.8 2-16-01-06
TARBALL=serf-$PKGVER.tar.bz2
MD5SUM=2e4efe57ff28cb3202a112e90f0c2889
SRC_URL=https://serf.googlecode.com/svn/src_releases/$TARBALL
BUNDLE=

SLACKREQ='libapr-util openssl' # require scons to build
SLACKDESC="libserf: libserf $PKGVER (HTTP client library)  
libserf:  
libserf: The Serf package contains a C-based HTTP client library built upon 
libserf: the Apache Portable Runtime (APR) library. It multiplexes 
libserf: connections, running the read/write communication asynchronously. 
libserf: Memory copies and transformations are kept to a minimum to provide 
libserf: high performance operation.  
libserf: 
libserf: 
libserf: 
libserf:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	! [ -e /usr/bin/env ] && ln -s /tools/bin/env /usr/bin/env
	! [ -e /usr/bin/sed ] && ln -s /tools/bin/sed /usr/bin/sed
	cd /tmp/serf*
	sed -i "/Append/s:RPATH=libdir,::" SConstruct &&
	sed -i "/Default/s:lib_static,::" SConstruct &&
	sed -i "/Alias/s:install_static,::" SConstruct &&
	scons PREFIX=/usr LIBDIR=/usr/$LIBDIR &&
	scons PREFIX=/usr LIBDIR=/usr/$LIBDIR install &&
	pkg_build_slackdesc &&
	rm -f /usr/bin/env /usr/bin/sed
}


