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

pkgname=gnsu
pkgver=0.2.3
pkgrel=1gv
arch=noarch
source=("gnsu-$pkgver.tar.xz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
options=('nosrcpack')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"gnsu (Gnsu's Not SU)"
"gnsu allows a permitted user to execute a command with superuser"
"priviliges. gnsu** shows a graphical dialog requesting the user"
"password to allow the execution of the specified command. As gnsu uses"
"sudo as its backend, the password that you need to provide is your"
"user's password, not the root user password."
)


build() {
	cd $startdir/src/$pkgname-$pkgver

	make || exit 1
	make install DESTDIR=$startdir/pkg PREFIX=/usr

	(
	 cd $startdir/pkg/usr/bin
	 ln -s gnsu gksu
	 ln -s gnsu gksudo
	)
}