```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 ```
12 lines
505 B
Bash
12 lines
505 B
Bash
# Template file for 'xkblayout-state'
|
|
pkgname=xkblayout-state
|
|
version=1b
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
makedepends="libX11-devel"
|
|
short_desc="Small command-line program to get/set the current keyboard layout"
|
|
maintainer="DirectorX <void.directorx@protonmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/nonpop/xkblayout-state"
|
|
distfiles="https://github.com/nonpop/xkblayout-state/archive/v${version}.tar.gz"
|
|
checksum=ddf2de9949edbea2cb25933c22a6b76d4f868ee3012120216555ac96e9b536d4
|