3353bf4722
```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 ```
14 lines
554 B
Bash
14 lines
554 B
Bash
# Template file for 'xbindkeys'
|
|
pkgname=xbindkeys
|
|
version=1.8.7
|
|
revision=2
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libX11-devel guile-devel guile gc-devel"
|
|
depends="guile"
|
|
short_desc="Launch shell commands with your keyboard or your mouse under X"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.nongnu.org/xbindkeys/xbindkeys.html"
|
|
distfiles="http://www.nongnu.org/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=a29b86a8ec91d4abc83b420e547da27470847d0efe808aa6e75147aa0adb82f2
|