void-packages/srcpkgs/yeahwm/template
Đoàn Trần Công Danh ad877a7e29 srcpkgs/y*: 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

22 lines
616 B
Bash

# Template file for 'yeahwm'
pkgname=yeahwm
version=0.3.5
revision=3
build_style=gnu-makefile
make_build_args="XROOT=\${XBPS_CROSS_BASE}/usr"
makedepends="motif-devel libX11-devel libXinerama-devel"
short_desc="Window manager for X based on evilwm and aewm"
maintainer="Ananteris <ananteris@mailinator.com>"
license="Public Domain"
homepage="http://phrat.de"
distfiles="http://phrat.de/${pkgname}_${version}.tar.gz"
checksum=c92ce98848c8b88d9b67c128e30710944c04a6454310254535c102b2b6fcee05
CFLAGS="-fcommon"
post_install() {
tail -n 40 README.evilwm > LICENSE
vlicense LICENSE
vdoc README
vdoc README.evilwm
}