qca-qt5: fix *.cmake for cross-build

Closes #14245.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
This commit is contained in:
John 2018-04-22 10:45:20 +02:00 committed by Enno Boland
parent 4a7812f24b
commit 3818efd423

View file

@ -1,18 +1,19 @@
# Template file for 'qca-qt5'
pkgname=qca-qt5
version=2.1.3
revision=4
revision=5
wrksrc=${pkgname%-*}-${version}
build_style=cmake
configure_args="-DBUILD_TESTS=0 -DQCA_FEATURE_INSTALL_DIR=/usr/share/qca-qt5/mkspecs"
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 libressl-devel"
depends="ca-certificates"
short_desc="Qt5 Cryptographic Architecture"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="LGPL-2.1"
license="LGPL-2.1-or-later"
homepage="https://userbase.kde.org/QCA"
distfiles="http://download.kde.org/stable/qca/${version}/src/qca-${version}.tar.xz"
distfiles="${KDE_SITE}/qca/${version}/src/qca-${version}.tar.xz"
checksum=003fd86a32421057a03b18a8168db52e2940978f9db5ebbb6a08882f8ab1e353
if [ -n "$CROSS_BUILD" ]; then
@ -36,5 +37,8 @@ qca-qt5-devel_package() {
vmove usr/lib/cmake
vmove usr/share/qca-qt5/mkspecs
vmove usr/lib/*.so
sed -i -e 's|usr\/include\/|\$\{_IMPORT_PREFIX}\/include\/|g' \
${PKGDESTDIR}/usr/lib/cmake/Qca-qt5/Qca-qt5Targets.cmake
}
}