core/qca/PKGBUILD

40 lines
969 B
Bash
Raw Normal View History

2018-10-29 23:53:44 +08:00
pkgname=qca
2018-01-22 07:42:57 +08:00
pkgver=2.1.3
2018-10-29 23:53:44 +08:00
pkgrel=3
pkgdesc="Qt5 Cryptographic Architecture"
arch=('x86_64')
2010-03-14 23:48:48 +08:00
url="http://delta.affinix.com/qca/"
license=('LGPL')
2018-10-29 23:53:44 +08:00
depends=('qt5-base' 'ca-certificates' 'nss')
makedepends=(cmake doxygen pkcs11-helper botan)
conflicts=(qca-qt5)
provides=(qca-qt5)
replaces=(qca-qt5)
source=("https://download.kde.org/stable/$pkgname/$pkgver/src/$pkgname-$pkgver.tar.xz"
qca-botan2.patch::"https://cgit.kde.org/qca.git/patch/?id=47163784")
md5sums=('5019cc29efcf828681cd93164238ce26'
'24242f465841923f447b361120daf802')
prepare(){
2018-10-29 23:53:44 +08:00
cd ${pkgname}-${pkgver}
patch -p1 -i ../qca-botan2.patch # Fix build with botan 2
mkdir $srcdir/build
}
2010-03-14 23:48:48 +08:00
build() {
cd $srcdir/build
2018-10-29 23:53:44 +08:00
cmake ../$pkgname-$pkgver \
2015-02-24 03:54:31 +08:00
-DCMAKE_INSTALL_PREFIX=/usr \
2015-10-23 03:13:26 +08:00
-DBUILD_TESTS=OFF \
2018-10-29 23:53:44 +08:00
-DQCA_SUFFIX='' \
2018-06-05 04:19:15 +08:00
-DQCA_INSTALL_IN_QT_PREFIX=ON \
-DQCA_MAN_INSTALL_DIR=/usr/share/man
make
2010-03-14 23:48:48 +08:00
}
2018-10-29 23:53:44 +08:00
package() {
cd $srcdir/build
make DESTDIR=${pkgdir} install
}