# Template file for 'system-config-printer'
pkgname=system-config-printer
version=1.5.18
revision=4
build_style=gnu-configure
pycompile_dirs="usr/share/system-config-printer"
configure_args="--with-udev-rules"
hostmakedepends="pkg-config gettext python3-devel python3-setuptools xmlto
 desktop-file-utils"
makedepends="libglib-devel cups-devel eudev-libudev-devel libusb-devel"
depends="python3-cupshelpers python3-smbc python3-gobject gir-freedesktop
 libnotify gtk+3 dconf desktop-file-utils libsecret"
short_desc="CUPS printer configuration tool and status applet"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/OpenPrinting/system-config-printer"
changelog="https://raw.githubusercontent.com/OpenPrinting/system-config-printer/master/NEWS"
distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.xz"
checksum=b1a69e1b4ec2add569a87aeca811a37c5361ee6ae327ec852b79e64223e34bee
python_version=3

python3-cupshelpers_package() {
	depends="python3-cups python3-dbus"
	short_desc="Python utility modules around the CUPS printing system"
	pkg_install() {
		vmove etc/cupshelpers
		vmove "usr/lib/python3*"
	}
}

system-config-printer-udev_package() {
	depends="python3-cupshelpers"
	short_desc="CUPS printer configuration tool (udev integration)"
	pkg_install() {
		vmove usr/lib/udev
	}
}
