void-packages/srcpkgs/dispcalGUI/template
Đoàn Trần Công Danh b6bcd8cd34 srcpkgs/d*: convert patches to -Np1
* daemontools and dmraid is kept at -Np0

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

26 lines
867 B
Bash

# Template file for 'dispcalGUI'
pkgname=dispcalGUI
version=3.8.9.3
revision=4
_name="DisplayCAL"
wrksrc="${_name}-${version}"
build_style=python2-module
hostmakedepends="python"
makedepends="python-devel libXxf86vm-devel libXinerama-devel libXrandr-devel"
depends="python-dbus python-numpy wxPython argyllcms"
short_desc="Display Calibration and Characterization"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="GPL-3.0-or-later"
homepage="https://displaycal.net/"
distfiles="${SOURCEFORGE_SITE}/dispcalgui/${_name}-${version}.tar.gz"
checksum=7c34dfbd9f66f24f1d4c88de4a5a0de688aad719f095874b6259637d30893bea
pre_configure() {
sed -i 's|MimeType=model/vrml;x-world/x-vrml;|MimeType=model/vrml;|' misc/displaycal-vrml-to-x3d-converter.desktop
}
post_install() {
find ${DESTDIR}/usr/ -exec chmod a+r \{\} +
find ${DESTDIR}/usr/ -type d -exec chmod a+x \{\} +
}