void-packages/srcpkgs/qca/template

38 lines
1.1 KiB
Bash

# Template file for 'qca'
pkgname=qca
version=2.1.3
revision=4
build_style=cmake
configure_args="-DBUILD_TESTS=0 -DQC_CERTSTORE_PATH=/etc/ssl/certs/ca-certificates.crt
-DQCA_FEATURE_INSTALL_DIR=/usr/share/qca/mkspecs -DWITH_ossl_PLUGIN=yes"
hostmakedepends="pkg-config ca-certificates"
makedepends="nss-devel libgcrypt-devel qt-devel libressl-devel"
depends="ca-certificates"
short_desc="Qt Cryptographic Architecture"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1"
homepage="http://delta.affinix.com/qca/"
distfiles="https://download.kde.org/stable/$pkgname/$version/src/${pkgname}-${version}.tar.xz"
checksum=003fd86a32421057a03b18a8168db52e2940978f9db5ebbb6a08882f8ab1e353
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt-host-tools qt-devel"
fi
qca-ossl_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - QCA OSSL plugin"
pkg_install() {
vmove usr/lib/qca/crypto/libqca-ossl.so
}
}
qca-devel_package() {
depends="qt-devel ${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
vmove usr/share/qca/mkspecs
}
}