aboutsummaryrefslogtreecommitdiffstats
path: root/community/qca/APKBUILD
blob: 27840d9fcd141eef7ab23b79b92ea8793d5a9337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qca
pkgver=2.2.1
pkgrel=0
pkgdesc="Qt cryptographic architecture"
url="https://userbase.kde.org/QCA"
arch="all"
license="LGPL-2.1-or-later"
makedepends="qt5-qtbase-dev cmake cyrus-sasl-dev"
subpackages="$pkgname-dev $pkgname-doc lib$pkgname:libs"
source="https://download.kde.org/stable/qca/$pkgver/qca-${pkgver}.tar.xz"

build() {
	cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_cyrus-sasl_PLUGIN=yes .
	make
}

package() {
	make DESTDIR="$pkgdir" install
	mkdir -p "$pkgdir"/usr/lib/qt5
	mv "$pkgdir"/usr/mkspecs "$pkgdir"/usr/lib/qt5
}

check() {
	make test
}

libs() {
	default_libs
	mv "$pkgdir"/usr/lib/qca-qt5 "$subpkgdir"/usr/lib
}

sha512sums="3a0e8aa7cf3ea9a7244facaf1d521ebca2753af37636e7bf5f21c57ae880ac9682ae7d6d9fa5ce41b73568ff9538214956b89cd41228c2cb828d9068c2031a9c  qca-2.2.1.tar.xz"