void-packages/srcpkgs/wm2/template
Đoàn Trần Công Danh 04b9978a29 srcpkgs/w*: convert patches to -Np1
* wine 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

17 lines
522 B
Bash

# Template file for 'wm2'
pkgname=wm2
version=4
revision=4
build_style=gnu-makefile
makedepends="libX11-devel libXext-devel libXmu-devel"
short_desc="a simple window manager for X"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="BSD"
homepage="http://www.all-day-breakfast.com/wm2"
distfiles="http://www.all-day-breakfast.com/wm2/wm2-${version}.tar.gz"
checksum=a6c3352390f958c5033408ce73e1abd9677372a7c8c5949e39a62fda433b054d
do_install() {
vbin wm2
vinstall ${FILESDIR}/wm2.desktop 644 usr/share/xsessions
}