* fpc is kept at -Np0
```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
```
21 lines
821 B
Bash
21 lines
821 B
Bash
# Template file for 'foomatic-db-engine'
|
|
pkgname=foomatic-db-engine
|
|
version=4.0.13
|
|
revision=3
|
|
build_style=gnu-configure
|
|
configure_args="--sbindir=/usr/bin --libdir=/usr/lib PERL_INSTALLDIRS=vendor"
|
|
hostmakedepends="wget perl foomatic-db cups-filters ghostscript cups libxml2-devel"
|
|
makedepends="libxml2-devel cups-devel"
|
|
depends="${hostmakedepends/libxml2-devel/}"
|
|
short_desc="OpenPrinting printer support - programs"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.openprinting.org/"
|
|
distfiles="https://www.openprinting.org/download/foomatic/$pkgname-$version.tar.gz"
|
|
checksum=b5c89027aa26967d2e6db62e2af7db0c4039d2480d4fbf2476a6ddcf609a5faf
|
|
|
|
post_configure() {
|
|
# Compiling and linking in one step requires $(LDFLAGS)
|
|
sed -i Makefile -e's;$(CC) $(CFLAGS);& $(LDFLAGS);'
|
|
}
|