void-packages/srcpkgs/xdg-dbus-proxy/template
Đoàn Trần Công Danh 3353bf4722 srcpkgs/x*: 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

15 lines
550 B
Bash

# Template file for 'xdg-dbus-proxy'
pkgname=xdg-dbus-proxy
version=0.1.2
revision=1
build_style=gnu-configure
configure_args="--enable-man"
hostmakedepends="libxslt pkg-config docbook-xsl"
makedepends="libglib-devel"
short_desc="Filtering proxy for D-Bus connections"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/flatpak/xdg-dbus-proxy"
distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tar.xz"
checksum=1749d6f9f46dcc9edc87725641cf56cf91dcad1b01707891ea0850c1000c520f