4f75cf25fd
```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 ```
13 lines
530 B
Bash
13 lines
530 B
Bash
# Template file for 'texmaker'
|
|
pkgname=texmaker
|
|
version=5.0.4
|
|
revision=1
|
|
build_style=qmake
|
|
hostmakedepends="qt5-qmake pkg-config qt5-host-tools"
|
|
makedepends="poppler-qt5-devel qt5-webkit-devel qt5-script-devel"
|
|
short_desc="Free cross-platform LaTeX editor"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.xm1math.net/texmaker/index.html"
|
|
distfiles="http://www.xm1math.net/$pkgname/$pkgname-$version.tar.bz2"
|
|
checksum=1de3ab3f6d6bee37a7d0b528ca1cbb7ce8e7aef5ec6a4405aff2caf9d12bd0e2
|