# vim: set syn=sh:
# Packager: Phill Watkins <ubemail~at~ymail~dot~com>
# Former Packager(s): George Vlahavas (vlahavas~AT~gmail~DOT~com)

pkgname=gtkmm
pkgver=2.18.2
pkgrel=1pw
#arch=noarch
source=("http://ftp.acc.umu.se/pub/GNOME/sources/gtkmm/2.18/gtkmm-$pkgver.tar.bz2")
sourcetemplate=http://people.salixos.org/pwatk/packages/13.2/gnome/$pkgname
docs=("AUTHORS" "ChangeLog" "COPYING*" "INSTALL" "NEWS" "PORTING" "README")
url=http://www.gtkmm.org/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"gtkmm (C++ interface for GTK+)"
"GTKmm is the official C++ interface for the popular GUI library GTK+."
"Highlights include typesafe callbacks, and a comprehensive set of"
"widgets that are easily extensible via inheritance. You can create"
"user interfaces either in code or with the Glade User Interface"
"designer, using libglademm. GTKmm is free software distributed under"
"the GNU Library General Public License (LGPL)."
)

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
}