#Packager: Vasile Coman <kerd[at]slackware[dot]eu>

pkgname=confuse
pkgver=2.7
pkgrel=1vc
source=("http://savannah.nongnu.org/download/confuse/confuse-$pkgver.tar.gz")
sourcetemplate=http://people.salixos.org/kerd/$pkgname/$pkgver/
docs=("readme" "install" "copying" "ChangeLog" "authors" "todo")
url=http://www.nongnu.org/confuse/

slackdesc=\
(
#|-----handy-ruler----------------------------------------------|
"Confuse (configuration file parser library)"
"Confuse is a configuration file parser library, It supports"
"sections and (lists of) values (strings, integers, floats,"
"booleans or other sections), as well as some other features"
"(such as single/double-quoted strings, environment variable"
"expansion, functions and nested include statements)."
"http://www.nongnu.org/confuse/"
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr \
  		--libdir=/usr/lib${LIBDIRSUFFIX} \
  		--sysconfdir=/etc \
  		--localstatedir=/var \
  		--enable-shared=yes \
  		--enable-static=no \
  		--build=$arch-slackware-linux || return 1
	
	make || return 1
	make install DESTDIR=$startdir/pkg

	
}