void-packages/srcpkgs/zeal/template
Đoàn Trần Công Danh e2a21ccfd6 srcpkgs/z*: 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
723 B
Bash

# Template file for 'zeal'
pkgname=zeal
reverts="20141123_1 20141123_2"
version=0.6.1
revision=1
build_style=cmake
configure_args="CONFIG+=no_libappindicator"
hostmakedepends="pkg-config extra-cmake-modules"
makedepends="qt5-webkit-devel xcb-util-keysyms-devel libarchive-devel qt5-x11extras-devel sqlite-devel"
depends="bsdtar"
short_desc="Simple offline API documentation browser"
maintainer="Farhad Shahbazi <grauwolf@geekosphere.org>"
license="GPL-3.0-or-later"
homepage="https://zealdocs.org/"
distfiles="https://github.com/zealdocs/zeal/archive/v${version}.tar.gz"
checksum=095c08f9903071849d5c79878abd48237ce1615f16d324afff1873ab6b5f0026
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-qmake"
fi