void-packages/srcpkgs/ruler/template
Đoàn Trần Công Danh 103ab731ab srcpkgs/r*: convert patches to -Np1
* runit is kept at -Np0

```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

19 lines
533 B
Bash

# Template file for 'ruler'
pkgname=ruler
version=0.1.0
revision=2
build_style=gnu-makefile
hostmakedepends="flex"
makedepends="xcb-util-wm-devel libxcb-devel libwm"
short_desc="Window rule daemon"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="ISC"
homepage="https://github.com/tudurom/ruler"
distfiles="https://github.com/tudurom/ruler/archive/v${version}.tar.gz"
checksum=5355e19530bb158b504cca6ba18cc402585e9bdb488e01a2ee76492bc70923c7
LDFLAGS="-lxcb -lxcb-ewmh -lxcb-icccm -lwm"
post_install() {
vlicense LICENSE
}