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 ```
22 lines
944 B
Bash
22 lines
944 B
Bash
# Template file for 'textosaurus'
|
|
pkgname=textosaurus
|
|
version=0.9.11
|
|
revision=1
|
|
_scommit=b6e583c42b596523aad85906152eb2bcf068f625
|
|
build_style=qmake
|
|
hostmakedepends="pkg-config qt5-tools qt5-qmake qt5-host-tools"
|
|
makedepends="qt5-svg-devel"
|
|
depends="qt5-svg"
|
|
short_desc="Simple cross-platform text editor based on Qt and Scintilla"
|
|
maintainer="Leandro Vital <leavitals@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/martinrotter/textosaurus"
|
|
changelog="https://raw.githubusercontent.com/martinrotter/textosaurus/master/resources/text/CHANGELOG"
|
|
distfiles="${homepage}/archive/${version}.tar.gz
|
|
https://github.com/martinrotter/scintilla/archive/${_scommit}.tar.gz"
|
|
checksum="82093b6c8725d104498ce4a66e4cf5a3aa1f057b34600bd5d67413dce9bff2cf
|
|
fad739e3493dea0f7435114ac936dc255d3b1471bd61c7e7349845ab626b95d9"
|
|
|
|
post_extract() {
|
|
cp -Trp ${XBPS_BUILDDIR}/scintilla-${_scommit} ${wrksrc}/src/libtextosaurus/3rd-party/scintilla
|
|
}
|