void-packages/srcpkgs/xorg-cf-files/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

16 lines
510 B
Bash

# Template file for 'xorg-cf-files'
pkgname=xorg-cf-files
version=1.0.6
revision=3
build_style=gnu-configure
hostmakedepends="pkg-config automake xorg-util-macros font-util"
short_desc="X.Org imake program and related utilities"
maintainer="Tj Vanderpoel (bougyman) <tj@rubyists.com>"
license="X11"
homepage="http://xorg.freedesktop.org/"
distfiles="${XORG_SITE}/util/${pkgname}-${version}.tar.bz2"
checksum=4dcf5a9dbe3c6ecb9d2dd05e629b3d373eae9ba12d13942df87107fdc1b3934d
pre_configure() {
autoreconf -fi
}