* 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 ```
21 lines
586 B
Bash
21 lines
586 B
Bash
# Template file for 'pchar'
|
|
pkgname=pchar
|
|
version=1.5
|
|
revision=4
|
|
build_style=gnu-configure
|
|
short_desc="Perform network measurements along an Internet path"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="custom"
|
|
homepage="http://www.kitchenlab.org/www/bmah/Software/pchar/"
|
|
distfiles="http://www.kitchenlab.org/www/bmah/Software/pchar/${pkgname}-${version}.tar.gz"
|
|
checksum=7019297084f1000557a019501532ecae67772851717329cc02227f5c17e36d27
|
|
|
|
do_install() {
|
|
vbin pchar
|
|
vman pchar.8
|
|
vdoc README
|
|
vdoc CHANGES
|
|
vdoc FAQ
|
|
sed -n '/DISCLAIMER/,$p' README >LICENSE
|
|
vlicense LICENSE
|
|
}
|