# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=xca
pkgver=2.7.0
pkgrel=0
pkgdesc="X certificate and key management"
url="https://hohnstaedt.de/xca/"
arch="all"
license="BSD-3-Clause"
options="!check" # no tests
depends="qt6-qtbase-sqlite"
makedepends="qt6-qttools-dev openssl-dev libtool cmake"
subpackages="$pkgname-doc $pkgname-bash-completion"
source="https://github.com/chris2511/xca/releases/download/RELEASE.$pkgver/xca-$pkgver.tar.gz
	"

build() {
	cmake -B build xca
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build --prefix /usr
}

sha512sums="
33b19c43b55077b7508420c73d60f9c8c6969d3ab7a9f80fea75ec7b089f7cb44bc8ddccf9d3c1f8d064b877dcb15183f7875b717591972cdae8c67513c4cb16  xca-2.7.0.tar.gz
"
