# Template file for 'ctzcls-cups'
pkgname=ctzcls-cups
version=1.5
revision=1
create_wrksrc=yes
makedepends="cups-devel"
short_desc="Citizen Sticker Printers driver for CUPS"
maintainer="Petr Cizmar <xxb0322@xpc.ovh>"
license="GPL-2.0-or-later"
homepage="https://www.citizen-systems.co.jp/en/printer/download/driver-cups-source/"
distfiles="https://www.citizen-systems.co.jp/cms/c-s/en/printer/download/driver-cups-source/cups-ctzcls.tar.gz"
checksum=1bbb042226d06cae715afbf658b09b856ac4275b5e21078d4e846d4e781d428f

do_build() {
	$CC $CFLAGS -fPIC -o rastertocls rastertocls.c -lcupsimage -lcups $LDFLAGS
}

do_install() {
	vinstall ctzcls.ppd 644 /usr/share/cups/model/
	vinstall rastertocls 755 /usr/lib/cups/filter/
}
