* 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 ```
26 lines
728 B
Bash
26 lines
728 B
Bash
# Template file for 'qdirstat'
|
|
pkgname=qdirstat
|
|
version=1.7.1
|
|
revision=1
|
|
build_style=qmake
|
|
hostmakedepends="qt5-qmake qt5-host-tools"
|
|
makedepends="zlib-devel qt5-devel"
|
|
short_desc="Qt-based directory statistics (KDirStat without any KDE)"
|
|
maintainer="lemmi <lemmi@nerd2nerd.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://github.com/shundhammer/qdirstat"
|
|
distfiles="https://github.com/shundhammer/qdirstat/archive/${version}.tar.gz"
|
|
checksum=fb40181972092d80994d3d04802c43298b70a21f1e636d5490a2bfbd1cb407d9
|
|
|
|
post_install() {
|
|
vman man/qdirstat.1
|
|
}
|
|
|
|
qdirstat-cache-writer_package() {
|
|
short_desc+=" - headless scanner"
|
|
depends="perl"
|
|
pkg_install() {
|
|
vmove usr/bin/qdirstat-cache-writer
|
|
vman man/qdirstat-cache-writer.1
|
|
}
|
|
}
|