### this file is sourced not run
PKGVER=0.28.1
PKGBUILD=1

TARBALL=pkg-config-lite-0.28-1.tar.gz
MD5SUM=61f05feb6bab0a6bbfab4b6e3b2f44b6 
BUNDLE=fatdog-base-8.2.tar
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$BUNDLE

SLACKREQ=
SLACKDESC="pkg-config-lite: pkg-config-lite $PKGVER (package configuration tool)  
pkg-config-lite:  
pkg-config-lite: Pkg-config-lite is a tool to help you insert the correct 
pkg-config-lite: compiler options on the command line when compiling 
pkg-config-lite: applications and libraries.  
pkg-config-lite: 
pkg-config-lite: 
pkg-config-lite: 
pkg-config-lite: 
pkg-config-lite: 
pkg-config-lite:  
"


### 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
### default pkg_package
### build
pkg_build() {
	cd /tmp/pkg-config*
	
	./configure --prefix=/usr \
		--docdir=/usr/share/doc/pkg-config-$PKGVER \
		--with-pc-path=/usr/share/pkgconfig &&
		
	make $MAKEFLAGS && make install &&

	pkg_build_slackdesc
}
