* 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 ```
25 lines
680 B
Bash
25 lines
680 B
Bash
# Template file for 'pvoc'
|
|
pkgname=pvoc
|
|
version=0.1.12
|
|
revision=3
|
|
build_style=gnu-makefile
|
|
make_use_env=yes
|
|
hostmakedepends="pkg-config"
|
|
makedepends="ladspa-sdk fftw-devel libsndfile-devel"
|
|
short_desc="LADSPA plugins and a tool for time compression/expansion"
|
|
maintainer="Olga Ustuzhanina <me@laserbat.pw>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://quitte.de/dsp/pvoc.html"
|
|
distfiles="http://quitte.de/dsp/pvoc_${version}.tar.gz"
|
|
checksum=d519d416049143cb2c4775feae639021b5693f39e27e99b1f036392580baa32d
|
|
|
|
pre_build() {
|
|
sed -i "s@-O6.\+@${CFLAGS}@" Makefile
|
|
sed -i "s@g++@${CXX}@" Makefile
|
|
}
|
|
|
|
do_install() {
|
|
vbin stretch
|
|
vman stretch.1
|
|
vinstall pvoc.so 755 usr/lib/ladspa
|
|
}
|