c987560802
```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 ```
32 lines
806 B
Bash
32 lines
806 B
Bash
# Template file for 'cups-pdf'
|
|
pkgname=cups-pdf
|
|
version=3.0.1
|
|
revision=1
|
|
conf_files="/etc/cups/cups-pdf.conf"
|
|
makedepends="cups-devel"
|
|
depends="ghostscript"
|
|
short_desc="PDF printer for cups"
|
|
maintainer="Piraty <piraty1@inbox.ru>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.cups-pdf.de/"
|
|
distfiles="https://www.cups-pdf.de/src/${pkgname}_${version}.tar.gz"
|
|
checksum=738669edff7f1469fe5e411202d87f93ba25b45f332a623fb607d49c59aa9531
|
|
|
|
do_build() {
|
|
$CC $CFLAGS -o $pkgname src/cups-pdf.c -lcups ${LDFLAGS}
|
|
}
|
|
|
|
do_install() {
|
|
# backend
|
|
vmkdir usr/lib/cups/backend/
|
|
vinstall "${wrksrc}/cups-pdf" 700 usr/lib/cups/backend/
|
|
|
|
# Postscript drivers
|
|
vmkdir usr/share/cups/model/
|
|
vcopy "extra/*.ppd" usr/share/cups/model/
|
|
|
|
vmkdir etc/cups
|
|
vcopy extra/cups-pdf.conf etc/cups/
|
|
vdoc README
|
|
vdoc ChangeLog
|
|
}
|