635e9da391
* 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 ```
41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# Template file for 'qca-qt5'
|
|
pkgname=qca-qt5
|
|
version=2.3.1
|
|
revision=2
|
|
wrksrc="${pkgname%-*}-${version}"
|
|
build_style=cmake
|
|
configure_args="-DBUILD_TESTS=0 -DQCA_FEATURE_INSTALL_DIR=/usr/share/qca-qt5/mkspecs
|
|
-DUSE_RELATIVE_PATHS=true"
|
|
hostmakedepends="pkg-config ca-certificates"
|
|
makedepends="nss-devel libgcrypt-devel qt5-devel ca-certificates openssl-devel"
|
|
depends="ca-certificates"
|
|
short_desc="Qt5 Cryptographic Architecture"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://userbase.kde.org/QCA"
|
|
distfiles="${KDE_SITE}/qca/${version}/qca-${version}.tar.xz"
|
|
checksum=c13851109abefc4623370989fae3a745bf6b1acb3c2a13a8958539823e974e4b
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-host-tools qt5-devel"
|
|
fi
|
|
|
|
qca-qt5-ossl_package() {
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
short_desc+=" - QCA OSSL plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/qca-qt5/crypto/libqca-ossl.so
|
|
}
|
|
}
|
|
|
|
qca-qt5-devel_package() {
|
|
depends="qt5-devel ${sourcepkg}-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/cmake
|
|
vmove usr/share/qca-qt5/mkspecs
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|