dd9d4a1979
```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 ```
34 lines
1.1 KiB
Bash
34 lines
1.1 KiB
Bash
# Template file for 'kdoctools'
|
|
pkgname=kdoctools
|
|
version=5.83.0
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DMEINPROC5_EXECUTABLE=/usr/bin/meinproc5
|
|
-DCHECKXML5_EXECUTABLE=/usr/bin/checkXML5
|
|
-DDOCBOOKL10NHELPER_EXECUTABLE=/usr/bin/docbookl10nhelper"
|
|
hostmakedepends="gettext kcoreaddons extra-cmake-modules perl perl-URI
|
|
qt5-host-tools qt5-qmake python kdoctools-devel"
|
|
makedepends="ki18n-devel karchive-devel libxml2-devel libxslt-devel
|
|
docbook-xml docbook-xsl"
|
|
depends="docbook-xml docbook-xsl"
|
|
short_desc="KDE Create documentation from DocBook"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://invent.kde.org/frameworks/kdoctools"
|
|
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=d3a4ea0d5c0348fff228aa5ba14a7d3eb00296c0f00b9ac9d4b74e56a89e395b
|
|
|
|
pre_check() {
|
|
export PATH="$PATH:${wrksrc}/build/bin"
|
|
}
|
|
|
|
kdoctools-devel_package() {
|
|
short_desc+=" - development"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/lib/cmake
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vbin build/bin/docbookl10nhelper
|
|
}
|
|
}
|