# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=system-config-printer
pkgver=1.5.18
pkgrel=4
pkgdesc="Graphical user interface for CUPS administration"
url="https://github.com/OpenPrinting/system-config-printer"
arch="noarch"
license="GPL-2.0-or-later"
depends="
	gdk-pixbuf
	libnotify
	python3
	py3-cairo
	py3-dbus
	py3-gobject3
	py3-pycups
	py3-requests
	"
makedepends="
	autoconf
	automake
	cups-dev
	intltool
	gettext-dev
	xmlto
	desktop-file-utils
	py3-setuptools
	"
subpackages="$pkgname-doc $pkgname-lang $pkgname-pyc"
source="https://github.com/OpenPrinting/system-config-printer/releases/download/v$pkgver/system-config-printer-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
33dc9c52d92f4234e055fb10a99cadd58424dcdb62554797b44bdd5319f1c3662bd2fa33417ac3a3f5ec51216d64e81e1897f3e671eb49f6be34057d7c38f3f4  system-config-printer-1.5.18.tar.xz
"
