void-packages/srcpkgs/actiona/template
Đoàn Trần Công Danh ae69000001 srcpkgs/a*: convert patches to -Np1
* arduino and antiword 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

22 lines
750 B
Bash

# Template file for 'actiona'
pkgname=actiona
version=3.10.1
revision=1
build_style=qmake
hostmakedepends="pkg-config qt5-plugin-mysql qt5-qmake qt5-host-tools"
makedepends="boost-devel libnotify-devel libopencv-devel pulseaudio-devel
qt5-multimedia-devel qt5-script-devel qt5-speech-devel qt5-tools-devel
qt5-x11extras-devel qt5-xmlpatterns-devel"
depends="qt5-plugin-mysql"
short_desc="Cross platform automation tool"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://actiona.tools/"
distfiles="https://github.com/Jmgr/${pkgname}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=447065e380f8f37db4c8af01df8e1b9d7189cd256205f758845b71d8de6f37ea
post_build() {
lrelease-qt5 locale/*.ts
}