#Packager: Richard Lapointe <richard@laprjns.com>
#Former Packager(s): Name <email@address.com>
#Anything commented out is optional and can be deleted.

pkgname=system-config-printer																									
pkgver=1.1.16
pkgrel=1rl
arch=i486
source=(http://cyberelk.net/tim/data/system-config-printer/1.1/$pkgname-$pkgver.tar.xz) 
sourcetemplate=http://people.salixos.org/laprjns/$arch/$pkgname/$pkgver/
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://cyberelk.net/tim/software/system-config-printer/
#dotnew=()
#CFLAGS=
#CXXFLAGS=
options=('noautodotnew')

#doinst() {
#
#}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"system-config-printer - a printer configuration tool"
"The purpose of the tool is to configure a CUPS server using the CUPS"
"API. The tool is written in Python, using pygtk for the graphical"
"parts and with some Python bindings (pycups) for the CUPS API."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure \
		--prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--mandir=/usr/man \
		--with-udev-rules
		
	make || return 1
	make install DESTDIR=$startdir/pkg
	
# fix desktop files - removes blank line at the top of the files	
	find $startdir/pkg/ -iname '*.desktop' -exec sed -i -n '/^$/!p' {} \;
}