# Template file for 'epson-inkjet-printer-escpr2'
pkgname=epson-inkjet-printer-escpr2
version=1.1.53
revision=1
archs="x86_64 i686 aarch64 armv7l"
build_style=gnu-configure
configure_args="--with-cupsfilterdir=/usr/lib/cups/filter
 --with-cupsppddir=/usr/share/ppd"
hostmakedepends="automake"
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/14/04/43/912b0e6f8a4a51379d983f23abc3db087ef20bc6/epson-inkjet-printer-escpr2-${version}-1lsb3.2.src.rpm"
checksum=e72c5b47a77ef8e952846ca70b18aa88823149bd982d061257be07845d9ad3c6
restricted=yes
repository=nonfree

post_extract() {
	bsdtar --strip-components=1 -xf \
		epson-inkjet-printer-escpr2-${version}-1lsb3.2.tar.gz
}

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