#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=libunique3
pkgver=3.0.2
pkgrel=1gv
source=(http://ftp.gnome.org/pub/GNOME/sources/libunique/3.0/libunique-3.0.2.tar.xz)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libunique is a library for writing single instance applications"
"Unique is a library for writing single instance application. If you"
"launch a single instance application twice, the second instance will"
"either just quit or will send a message to the running instance."
"Unique makes it easy to write this kind of applications, by providing"
"a base class, taking care of all the IPC machinery needed to send"
"messages to a running instance, and also handling the startup"
"notification side."
)


build() {
	cd $startdir/src/libunique-$pkgver
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg

	# we don't need these
	rm -rf $startdir/pkg/usr/share/gtk-doc
}