# vim: set syn=sh:
# Packager: Phill Watkins <ubemail~at~ymail~dot~com>
# Former Packager(s): Thorsten Muehlfelder <thenktor(at)gmx.de>

pkgname=libxml++
pkgver=2.33.2
pkgrel=1pw
#arch=
source=(http://ftp.acc.umu.se/pub/GNOME/sources/libxml++/$(echo $pkgver | awk -F. '{print $1"."$2}')/libxml++-$pkgver.tar.bz2)
sourcetemplate=http://people.salixos.org/pwatk/packages/13.2/l/$pkgname
docs=("AUTHORS" "ChangeLog" "COPYING" "INSTALL" "MAINTAINERS" "NEWS" "README")
url=http://ftp.acc.umu.se/pub/GNOME/sources/libxml++

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libxml++ (C++ bindings for the libxml2 library)"
"This library provides a C++ interface to XML files. It uses libxml 2"
"to access the XML files."
)

build() {
	set -e
	
	cd $startdir/src/$pkgname-$pkgver
	./configure \
	  --prefix=/usr \
	  --sysconfdir=/etc \
	  --localstatedir=/var \
	  --libdir=/usr/lib${LIBDIRSUFFIX} \
	  --mandir=/usr/man \
	  --infodir=/usr/info \
	  --docdir=/usr/doc/$pkgname-$pkgver \
	  --build=$arch-slackware-linux \
	  --disable-documentation \
	  --disable-static
	make -j $numjobs \
	  libdocdir=/usr/doc/$pkgname-$pkgver
	make install \
	  DESTDIR=$startdir/pkg \
	  libdocdir=/usr/doc/$pkgname-$pkgver

	set +e
}