void-packages/srcpkgs/gmrun/template
Đoàn Trần Công Danh 7fc9190f0e srcpkgs/g*: convert patches to -Np1
* gcc is kept at -Np0, because of void-cross

```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

18 lines
539 B
Bash

# Template file for 'gmrun'
pkgname=gmrun
version=0.9.2
revision=5
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="gtk+-devel popt-devel"
short_desc="A simple program which provides an X 'run program' window"
maintainer="bougyman <bougyman@rubyists.com>"
license="GPL-2.0-or-later"
homepage="http://sf.net/projects/gmrun"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=17297bce53249ccc7145931db22251b47f77ac355f78cf8abf1e87ae16341fa0
post_install() {
vlicense COPYING
vdoc README
}