# Description : Qt5 Cryptographic Architecture
# URL : http://delta.affinix.com/qca/
# Packager : pierre at nutyx dot org
# Depends on : qt5 nss cmake doxygen

name=qca-qt5
version=2.1.1
release=1

source=(http://download.kde.org/stable/qca/$version/src/qca-$version.tar.xz)
build() {
mkdir build
cd build
cmake ../qca-$version           \
    -DCMAKE_INSTALL_PREFIX=/usr   \
    -DBUILD_TESTS=OFF             \
    -DQCA_SUFFIX=qt5              \
    -DQCA_INSTALL_IN_QT_PREFIX=ON

make
make DESTDIR=$PKG install

rm $PKG/usr/certs/rootcerts.pem
rm $PKG/usr/mkspecs/features/crypto.prf
}

