description="A CUPS printer configuration tool and status applet"
url="https://github.com/zdohnal/system-config-printer"

packager="tnut <tnut@nutyx.org>"

makedepends=(python python-cairo dbus-python python-gobject python-cups
             python-curl python-smbc desktop-file-utils docbook-xsl intltool xmlto)
run=(dbus-python python-gobject python-cairo python-cups python-curl
     python-smbc desktop-file-utils)

name=system-config-printer
version=1.5.11
release=3

source=(0001-Fix-constructing-the-auth-dialog.patch
	https://github.com/zdohnal/$name/releases/download/$version/$name-$version.tar.xz)

build() {

cd $name-$version

patch -Np1 -i ../0001-Fix-constructing-the-auth-dialog.patch

./configure --prefix=/usr \
--sbindir=/usr/bin --sysconfdir=/etc \
--with-udev-rules 

make

make DESTDIR=$PKG install

# Compile *.pyc
# find $PKG -name '*.py' -exec python -mpy_compile {} +
# Compile *.pyo
# find $PKG -name '*.py' -exec python -O -mpy_compile {} +

}
