void-packages/srcpkgs/kanshi/template
Đoàn Trần Công Danh dd9d4a1979 srcpkgs/k*: convert patches to -Np1
```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
```
2021-06-20 13:17:29 +07:00

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
}