#Maintainer: George Vlahavas (vlahavas~AT~gmail~DOT~com)

pkgname=libsigc++
pkgver=2.2.3
pkgrel=1gv
arch=x86_64
source=("http://ftp.acc.umu.se/pub/GNOME/sources/libsigc++/2.2/libsigc++-2.2.3.tar.bz2")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libsig++ - Typesafe Callback System for C++"
"Libsigc++ implements a typesafe callback system for standard C++. It"
"allows you to define signals and to connect those signals to any"
"callback function, either global or a member function, regardless of"
"whether it is static or virtual. It also contains adaptor classes for"
"connection of dissimilar callbacks and has an ease of use unmatched"
"by other C++ callback libraries. Libsigc++ is licensed under the GNU"
"Library General Public License, LGPL."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc
	make || return 1
	make install DESTDIR=$startdir/pkg

	# Only docs in here, it's easier to find them on the internet
	rm -rf $startdir/pkg/usr/share/doc
	rmdir $startdir/pkg/usr/share
}