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

pkgname=ktsuss
pkgver=20160517
pkgrel=1slint
source=("ktsuss-$pkgver.tar.xz" "gksu")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "credits" "readme-pot")
url=http://developer.berlios.de/projects/ktsuss/
options=('nosrcpack')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"ktsuss (a graphical version of su)"
"ktsuss stands for \"keep the su simple, stupid\", and as the name says,"
"is a graphical version of su written in C and GTK+ 2. The idea of the"
"project is to remain simple and bug free..."
)


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

	cp $startdir/src/gksu $startdir/pkg/usr/bin
	chmod 755 $startdir/pkg/usr/bin/gksu
} 
