void-packages/srcpkgs/epson-inkjet-printer-escpr/template
Đoàn Trần Công Danh a03d116397 srcpkgs/e*: convert patches to -Np1
```sh

git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

14 lines
718 B
Bash

# Template file for 'epson-inkject-printer-escpr'
pkgname=epson-inkjet-printer-escpr
version=1.7.7
revision=1
build_style=gnu-configure
configure_args="--disable-static --with-cupsppddir=/usr/share/ppd --with-cupsfilterdir=/usr/lib/cups/filter"
makedepends="cups-devel"
depends="cups-filters"
short_desc="Epson Inkjet Printer Driver (ESC/P-R)"
maintainer="Justin Berthault <justin.berthault@zaclys.net>"
license="GPL-2.0-or-later"
homepage="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
distfiles="https://download3.ebz.epson.net/dsc/f/03/00/10/49/18/f3016be6120a7271a6d9cb64872f817bce1920b8/${pkgname}-${version}-1lsb3.2.tar.gz"
checksum=8d964368a1395a8902b8637e3dc176d6793f0afdfe3f21e95509f29894700d4e