void-packages/srcpkgs/gpick/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

19 lines
657 B
Bash

# Template file for 'gpick'
pkgname=gpick
version=0.2.6
revision=1
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=cmake
hostmakedepends="gettext pkg-config ragel"
makedepends="boost-devel gtk+3-devel lua52-devel expat-devel"
short_desc="Advanced color picker written in C++ using GTK+ toolkit"
maintainer="Alexander Mamay <alexander@mamay.su>"
license="BSD-3-Clause"
homepage="https://github.com/thezbyg/gpick"
distfiles="https://github.com/thezbyg/gpick/archive/${pkgname}-${version}.tar.gz"
checksum=7d02be171cc88c44ad3e3572c0922bbabedc9d542b989f324fca9d5db3161e9c
post_install() {
rm -rf ${DESTDIR}/usr/share/doc
vlicense LICENSE.txt LICENSE
}