#Maintainer: Dimitris Tzemos <djemos@slackel.gr>

pkgname=libconfig
pkgver=1.4.9
pkgrel=1dj
source="http://www.hyperrealm.com/${pkgname}/${pkgname}-${pkgver}.tar.gz"
docs=("AUTHORS" "TODO" "NEWS" "ChangeLog" "INSTALL" "README" "COPYING.LIB")
url="http://www.hyperrealm.com/main.php?s=libconfig"

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libconfig - C/C++ Configuration File Library"
"Libconfig is a simple library for processing structured"
"configuration files. This file format is more compact and more"
"readable than XML. And unlike XML, it is type-aware, so it is not"
"necessary to do string parsing in application code."
"Libconfig is very compact - a fraction of the size of the expat XML"
"parser library. This makes it well-suited for memory-constrained"
"systems like handheld devices."
)

build() {

cd $SRC/${pkgname}-${pkgver}

./configure \
  --prefix=/usr \
  --libdir=/usr/lib$LIBDIRSUFFIX \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --infodir=/usr/info \
  --build=$arch-slackware-linux

  make -j $numjobs || return 1
  make install DESTDIR=$PKG 
	
}