```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 ```
16 lines
500 B
Bash
16 lines
500 B
Bash
# Template file for 'espeakup'
|
|
pkgname=espeakup
|
|
version=0.80
|
|
revision=2
|
|
build_style="gnu-makefile"
|
|
makedepends="libespeak-ng-devel"
|
|
short_desc="Lightweight connector for espeak and speakup"
|
|
maintainer="Rui Abreu Ferreira <raf-ep@gmx.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/williamh/espeakup"
|
|
distfiles="https://github.com/williamh/espeakup/archive/v${version}.tar.gz"
|
|
checksum="4de284e30b6bdb0f9dee9c8ea02d13a3d20a61415b812338446b8b381e997ef4"
|
|
|
|
post_install() {
|
|
vsv espeakup
|
|
}
|