void-packages/srcpkgs/qca-qt5/template
q66 0c11013fb2 qca-qt5: patch out -ansi from CXXFLAGS
This is completely wrong because -ansi when used with g++ disables
C++11 features, which Qt relies on, resulting in megabytes of
errors printed into the console. I'm not sure how this ever
built but it's definitely not right.

[ci skip]
2019-08-12 16:40:03 +02:00

44 lines
1.3 KiB
Bash

# Template file for 'qca-qt5'
pkgname=qca-qt5
version=2.1.3
revision=8
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 libressl-devel"
depends="ca-certificates"
short_desc="Qt5 Cryptographic Architecture"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://userbase.kde.org/QCA"
distfiles="${KDE_SITE}/qca/${version}/src/qca-${version}.tar.xz"
checksum=003fd86a32421057a03b18a8168db52e2940978f9db5ebbb6a08882f8ab1e353
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
sed -i -e 's|usr\/include\/|\$\{_IMPORT_PREFIX}\/include\/|g' \
${PKGDESTDIR}/usr/lib/cmake/Qca-qt5/Qca-qt5Targets.cmake
}
}