e2a21ccfd6
```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 ```
20 lines
723 B
Bash
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
|