ad5073e81f
Since Qt5-5.5.0 it seems to be necessary to explicitly include <QIODevice> if this class is used. Before this header may have been included as a side-effect by other Qt headers.
47 lines
1.3 KiB
Bash
47 lines
1.3 KiB
Bash
# Template file for 'qca'
|
|
pkgname=qca-qt5
|
|
version=2.1.0
|
|
revision=3
|
|
wrksrc=${pkgname%-*}-${version}
|
|
build_style=cmake
|
|
configure_args="-DBUILD_TESTS=0 -DQCA_FEATURE_INSTALL_DIR=/usr/share/qca/mkspecs -DWITH_ossl_PLUGIN=yes"
|
|
hostmakedepends="cmake pkg-config"
|
|
makedepends="nss-devel libgcrypt-devel qt5-devel ca-certificates libressl-devel"
|
|
depends="ca-certificates"
|
|
short_desc="Qt Cryptographic Architecture"
|
|
maintainer="Duncaen <duncaen@voidlinux.eu>"
|
|
license="LGPL-2.1"
|
|
homepage="http://delta.affinix.com/qca/"
|
|
distfiles="http://delta.affinix.com/download/qca/2.0/${pkgname%-*}-${version}.tar.gz"
|
|
checksum=226dcd76138c3738cdc15863607a96b3758a4c3efd3c47295939bcea4e7a9284
|
|
|
|
provides="qca-${version}_${revision}"
|
|
replaces="qca>=0"
|
|
|
|
pre_configure() {
|
|
sed -e "s;-D_BSD_SOURCE;-D_DEFAULT_SOURCE;" \
|
|
-i CMakeLists.txt
|
|
}
|
|
|
|
qca-qt5-ossl_package() {
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
short_desc+=" - QCA OSSL plugin"
|
|
provides="qca-ossl-${version}_${revision}"
|
|
replaces="qca-ossl>=0"
|
|
pkg_install() {
|
|
vmove usr/lib/qca/crypto/libqca-ossl.so
|
|
}
|
|
}
|
|
|
|
qca-qt5-devel_package() {
|
|
depends="qt5-devel ${sourcepkg}-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
provides="qca-devel-${version}_${revision}"
|
|
replaces="qca-devel>=0"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/cmake
|
|
vmove usr/share/qca/mkspecs
|
|
}
|
|
}
|