# Template file for 'epson-inkjet-printer-escpr2'
pkgname=epson-inkjet-printer-escpr2
version=1.1.24
revision=1
archs="x86_64 i686 aarch64 armv7l"
create_wrksrc=yes
build_wrksrc="${pkgname}-${version}"
build_style=gnu-configure
configure_args="--with-cupsfilterdir=/usr/lib/cups/filter --with-cupsppddir=/usr/share/ppd"
hostmakedepends="automake rpmextract "
makedepends="cups-devel ghostscript-devel"
short_desc="Epson Inkjet Printer Driver 2 (ESC/P-R) for Linux"
maintainer="André Cerqueira <acerqueira021@gmail.com>"
license="custom:Proprietary"
homepage="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
distfiles="https://download3.ebz.epson.net/dsc/f/03/00/12/09/63/b7d2bb6a97c9ad99a96ebc68f8abcb1254888e94/${pkgname}-${version}-1lsb3.2.src.rpm"
checksum=0cfce328ab1359b7c393532c54f5cdb0ee43ec2fd188d7a09b0ab6b04331d9ca
restricted=yes
repository=nonfree

post_extract() {
	bsdtar xf ${pkgname}-${version}-1lsb3.2.tar.gz
}

post_install() {
	vlicense COPYING
	vlicense COPYING.EPSON
	vlicense COPYING.LIB
}
