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

TARBALL=pkg-config-lite-0.28-1.tar.gz
MD5SUM=61f05feb6bab0a6bbfab4b6e3b2f44b6 
SRC_URL=http://distro.ibiblio.org/fatdog/source/710/clfs-packages-3.0.0.tar
BUNDLE=clfs-packages-3.0.0.tar

SLACKREQ=
SLACKDESC='pkg-config-lite: pkg-config-lite 0.28.1 (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*
	
	CC="gcc ${BUILD64}" ./configure --prefix=/usr \
		--docdir=/usr/share/doc/pkg-config-0.28-1 --with-pc-path=/usr/share/pkgconfig &&
		
	make $MAKEFLAGS && make install &&

	pkg_build_slackdesc
}
