```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 ```
17 lines
533 B
Bash
17 lines
533 B
Bash
# Template file for 'kanshi'
|
|
pkgname=kanshi
|
|
version=1.1.0
|
|
revision=2
|
|
build_style=meson
|
|
hostmakedepends="pkg-config scdoc wayland-devel"
|
|
makedepends="wayland-devel"
|
|
short_desc="Output profiles automatically enabled/disabled on hotplug"
|
|
maintainer="Stacy Harper <contact@stacyharper.net>"
|
|
license="MIT"
|
|
homepage="https://github.com/emersion/kanshi"
|
|
distfiles="https://github.com/emersion/kanshi/archive/v${version}.tar.gz"
|
|
checksum=f7e782d2b49380aed370213b8d74af9fe806d9dc94b3c19179475f4b18e26566
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|