void-packages/srcpkgs/libwm/template
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: 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

14 lines
481 B
Bash

# Template file for 'libwm'
pkgname=libwm
version=1.2
revision=1
build_style=gnu-makefile
makedepends="libxcb-devel xcb-util-cursor-devel"
depends="$makedepends"
short_desc="Small library for X windows manipulation"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/wmutils/libwm"
distfiles="https://github.com/wmutils/libwm/archive/v${version}.tar.gz"
checksum=db80ef40d6b105f046c1d0bc138470b3e23e7bd1000afc3163d9e62f403f0f6a