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

TARBALL=libee-0.4.1.tar.gz
MD5SUM=7bbf4160876c12db6193c06e2badedb2
BUNDLE=fatdog-base-8.2.tar
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$BUNDLE

SLACKREQ=libestr32
SLACKDESC="libee32: libee32 $PKGVER (Event expression library)
libee32: 
libee32: The Libee is an event expression library.
libee32: 
libee32: This is 32-bit version of the library.
libee32: 
libee32: 
libee32: 
libee32: 
libee32: 
libee32: 
"


### override download for LFS sources bundle
# $1-src-dir $2-tarball 
pkg_download() {
	echo downloading $BUNDLE for $TARBALL
	wget -P $1 $SRC_URL
	tar -xf $1/$BUNDLE --strip-components=1 -C $1 
	rm $1/$BUNDLE
}

### default pkg_prepare
### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
}

### build
pkg_build() {
	export CC="gcc ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}"
	MAKEFLAGS=""
	pkg_build_autoconf && pkg_build_slackdesc
}


