void-packages/srcpkgs/pekwm/template
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: convert patches to -Np1
* par 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
651 B
Bash

# Template file for 'pekwm'
pkgname=pekwm
version=0.1.18
revision=1
wrksrc="${pkgname}-release-${version}"
build_style=cmake
configure_args="-DPEKWM_CONF_DIR=/etc/pekwm"
hostmakedepends="pkg-config"
makedepends="libjpeg-turbo-devel libpng-devel libXpm-devel
libXft-devel fontconfig-devel libXinerama-devel libXrandr-devel"
short_desc="Window manager based on aewm++"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.pekwm.se/"
distfiles="https://github.com/pekdon/pekwm/archive/release-${version}.tar.gz"
checksum=e04e14ab7b212ec7c3a36e4c24b6228383df4ca3768f9fea7ba22dcd107d5d5a
conf_files="/etc/pekwm/*"