void-packages/srcpkgs/qtcurve/template
Đoàn Trần Công Danh 635e9da391 srcpkgs/q*: convert patches to -Np1
* par 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

18 lines
808 B
Bash

# Template file for 'qtcurve'
pkgname=qtcurve
version=1.9.1
revision=3
build_style=cmake
configure_args="-DENABLE_QT4=OFF"
hostmakedepends="gettext pkg-config extra-cmake-modules perl
qt5-qmake qt5-host-tools kcoreaddons gdk-pixbuf-devel"
makedepends="libxcb-devel libX11-devel qt5-devel gtk+-devel
qt5-svg-devel qt5-x11extras-devel frameworkintegration-devel
ki18n-devel kdelibs4support-devel"
short_desc="Configurable set of widget styles for KDE and Gtk"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="LGPL-2.1-or-later"
homepage="https://quickgit.kde.org/?p=qtcurve.git"
distfiles="https://github.com/KDE/qtcurve/archive/${version}.tar.gz"
checksum=fbfdafdac90d4c540dd55a4accfecfc3a17c1f532c5241e28003348beafaca15
nocross="tries to execute a helper binary compiled for target on the host"