# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer:
pkgname=epson-inkjet-printer-escpr
pkgver=1.8.5
pkgrel=0
pkgdesc="Epson Inkjet Printer Driver (ESC/P-R) for Linux"
url="https://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
arch="all"
license="GPL-2.0-or-later"
depends="cups-filters"
makedepends="cups-dev"
source="$pkgname-$pkgver.tar.gz::https://download3.ebz.epson.net/dsc/f/03/00/15/68/89/fbff579f15226ffcc4a16895bd6bce6842277802/epson-inkjet-printer-escpr-1.8.5-1.tar.gz
	gcc14-implicit-function-declaration.patch
	"
options="!check" # no test suite provided

prepare() {
	default_prepare

	update_config_guess
}

build() {
	./configure \
		--disable-static \
		--prefix=/usr \
		--with-cupsfilterdir=/usr/lib/cups/filter \
		--with-cupsppddir=/usr/share/ppd
	make
}

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

sha512sums="
4117b1efe903e4f506bbc67c45079f1d467ff6527691308734e55d32feeda3ec44b2dd85361e0243114f924eef04a91b0a5e86b5008f0a32ef323989b3d2896f  epson-inkjet-printer-escpr-1.8.5.tar.gz
19408e0951455ff287c4d7ed9b97b105abe6191ac91a99d9dd6d2f3306478c24354ebe3692822967bb177dbb0f2ae7d06f1d8c2278f384c5863769ebe50ec531  gcc14-implicit-function-declaration.patch
"
