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 ```
27 lines
1.2 KiB
Bash
27 lines
1.2 KiB
Bash
# Template file for 'kdevelop-python'
|
|
pkgname=kdevelop-python
|
|
version=5.6.2
|
|
revision=1
|
|
wrksrc="kdev-python-${version}"
|
|
build_style=cmake
|
|
configure_args="-DBUILD_TESTING=OFF"
|
|
pycompile_dirs="usr/share/kdevpythonsupport"
|
|
hostmakedepends="extra-cmake-modules tar gettext python3 qt5-qmake python3-devel
|
|
qt5-host-tools kcoreaddons"
|
|
makedepends="python3-devel qt5-devel knewstuff-devel kitemmodels-devel
|
|
threadweaver-devel ktexteditor-devel kcmutils-devel knotifyconfig-devel
|
|
grantlee5-devel kdevelop-devel"
|
|
short_desc="Python 3 language and Django project support for KDevelop"
|
|
maintainer="yopito <pierre.bourgin@free.fr>"
|
|
license="LGPL-2.0-or-later, GPL-2.0-or-later"
|
|
homepage="https://www.kdevelop.org/"
|
|
distfiles="${KDE_SITE}/kdevelop/${version}/src/kdev-python-${version}.tar.xz"
|
|
checksum=20f9b771b961262ded986a4f32b8d259ad9f7bc48bb29eac0a5d5853be1d917f
|
|
python_version=3
|
|
|
|
post_install() {
|
|
# don't install this python2 script: generates documentation_files, useless at runtime
|
|
rm -f ${DESTDIR}/usr/share/kdevpythonsupport/documentation_files/PyKDE4/parse_xml.py \
|
|
${DESTDIR}/usr/share/kdevpythonsupport/documentation_files/PyKDE4/kdecore.py \
|
|
${DESTDIR}/usr/share/kdevpythonsupport/documentation_files/PyKDE4/khtml.py
|
|
}
|