```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
509 B
Bash
16 lines
509 B
Bash
# Template file for 'evtest'
|
|
pkgname=evtest
|
|
version=1.34
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake"
|
|
short_desc="Command line tool for displaying device input information"
|
|
maintainer="sen <ethan.k.shackelford@gmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://cgit.freedesktop.org/evtest/"
|
|
distfiles="https://cgit.freedesktop.org/evtest/snapshot/evtest-${version}.tar.xz"
|
|
checksum=e49f1f160b30c8f7c2a4caef5ab655f1caf816483d19fdedd6db2d251d7ab80e
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|