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 ```
32 lines
1.2 KiB
Bash
32 lines
1.2 KiB
Bash
# Template file for 'texstudio'
|
|
pkgname=texstudio
|
|
version=3.1.2
|
|
revision=1
|
|
build_style=qmake
|
|
configure_args="USE_SYSTEM_HUNSPELL=y USE_SYSTEM_QUAZIP=y
|
|
INCLUDEPATH+=$XBPS_CROSS_BASE/usr/include/quazip5
|
|
$(vopt_if phonon PHONON=true) $(vopt_if poppler '' NO_POPPLER_PREVIEW=true)"
|
|
hostmakedepends="pkg-config qt5-qmake qt5-host-tools"
|
|
makedepends="qt5-webkit-devel qt5-svg-devel qt5-script-devel qt5-tools-devel
|
|
hunspell-devel quazip-qt5-devel
|
|
$(vopt_if phonon phonon-qt5-devel) $(vopt_if poppler poppler-qt5-devel)"
|
|
depends="qt5-svg"
|
|
short_desc="Powerful Tex/LaTeX editor based on texmaker"
|
|
maintainer="Piraty <piraty1@inbox.ru>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://texstudio.org/"
|
|
changelog="https://raw.githubusercontent.com/texstudio-org/texstudio/master/utilities/manual/CHANGELOG.txt"
|
|
distfiles="https://github.com/texstudio-org/texstudio/archive/${version}.tar.gz"
|
|
checksum=7251f8e6f2b17395c428e9ff13bfc2c58e5f07ec09aae1036ab912dcf89f6fad
|
|
|
|
build_options="phonon poppler"
|
|
desc_option_phonon="build with phonon (=media support for pdf preview)"
|
|
desc_option_poppler="build with poppler (=internal pdf preview)"
|
|
|
|
build_options_default="phonon poppler"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc64*) ;;
|
|
aarch64*|ppc*)
|
|
configure_args+=" NO_CRASH_HANDLER=true" ;;
|
|
esac
|