635e9da391
* par 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 ```
20 lines
734 B
Bash
20 lines
734 B
Bash
# Template file for 'qpdfview'
|
|
pkgname=qpdfview
|
|
version=0.4.18
|
|
revision=2
|
|
build_style=qmake
|
|
configure_args="qpdfview.pro"
|
|
hostmakedepends="pkg-config qt5-host-tools qt5-qmake"
|
|
makedepends="cups-devel djvulibre-devel file-devel libspectre-devel
|
|
poppler-qt5-devel qt5-svg-devel qt5-tools-devel"
|
|
depends="desktop-file-utils hicolor-icon-theme qt5-plugin-sqlite qt5-svg"
|
|
short_desc="Tabbed document viewer"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://launchpad.net/qpdfview"
|
|
distfiles="https://launchpad.net/qpdfview/trunk/${version}/+download/qpdfview-${version}.tar.gz"
|
|
checksum=cc642e7fa74029373ca9b9fbc29adc4883f8b455130a78ad54746d6844a0396c
|
|
|
|
pre_configure() {
|
|
lrelease qpdfview.pro
|
|
}
|