void-packages/srcpkgs/trojita/template
Đoàn Trần Công Danh 4f75cf25fd srcpkgs/t*: convert patches to -Np1
```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

20 lines
658 B
Bash

# Template file for 'trojita'
pkgname=trojita
version=0.7
revision=1
build_style=cmake
hostmakedepends="qt5-host-tools qt5-qmake"
makedepends="qt5-devel qt5-plugin-mysql qt5-plugin-pgsql qt5-plugin-sqlite
qt5-plugin-tds qt5-plugin-odbc qt5-webkit-devel qt5-tools-devel qt5-svg-devel
zlib-devel"
depends="qt5-svg qt5-plugin-sqlite"
short_desc="A fast Qt IMAP/SMPTP client"
maintainer="Jannis Christ <hello@jannis.ovh>"
license="GPL-2,GPL-3"
homepage="http://trojita.flaska.net/"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.xz"
checksum=e08da881721cafa00ecd772eaef6b99fd37d068cb703eeb532de0ed1ea0136d9
post_install() {
vlicense LICENSE
}