49cb564d14
* par is kept at -Np0 ```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 ```
23 lines
844 B
Bash
23 lines
844 B
Bash
# Template file for 'pyside2-tools'
|
|
pkgname=pyside2-tools
|
|
version=5.15.2
|
|
revision=1
|
|
_pkgname="pyside-setup-opensource-src-${version}"
|
|
wrksrc="${_pkgname/%5.14.2.1/5.14.2}"
|
|
build_wrksrc="sources/pyside2-tools"
|
|
build_style=cmake
|
|
hostmakedepends="cmake python3-devel shiboken2"
|
|
makedepends="python3-devel libshiboken2-devel qt5-devel
|
|
libpyside2-python3-devel"
|
|
checkdepends="pkg-config"
|
|
short_desc="Python3 bindings for the Qt5 toolkit"
|
|
maintainer="yopito <pierre.bourgin@free.fr>"
|
|
license="LGPL-3.0-or-later"
|
|
homepage="https://wiki.qt.io/Qt_for_Python/Shiboken"
|
|
distfiles="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/${_pkgname}.tar.xz"
|
|
checksum=b306504b0b8037079a8eab772ee774b9e877a2d84bab2dbefbe4fa6f83941418
|
|
python_version=3
|
|
|
|
if [ ${CROSS_BUILD} ]; then
|
|
hostmakedepends+=" qt5-qmake qt5-host-tools"
|
|
fi
|