summaryrefslogblamecommitdiff
path: root/user/kleopatra/APKBUILD
blob: 168f783ce55a791712b80a58bf1d7e4d6ea65154 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
              



                                                           
                                                    
                      
          

                                                                              
                                        


                                                                                         


























                                                                                          

                                                                                                                                                                      
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kleopatra
pkgver=19.04.3
pkgrel=0
pkgdesc="Certificate manager and cryptography GUI"
url="https://www.kde.org/applications/utilities/kleopatra/"
arch="all"
options="!check"  # Test requires D-Bus session bus.
license="GPL-2.0-only"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev libkleo-dev kcmutils-dev
	libassuan-dev kitemmodels-dev kmime-dev knotifications-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/applications/$pkgver/src/kleopatra-$pkgver.tar.xz
	qt5.9.patch
	"

build() {
	cd "$builddir"
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS}
	make
}

check() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="cf55cb118f7f966e02f635f0a2412eb497e557f729aa1dbdb86839a49fd733f117119ca493b590a1e3ebc36de17c2a9467eef16d6377ffe27e7c3acb63094e4a  kleopatra-19.04.3.tar.xz
10b52477c42e8683528a2b429777d37d0b711d2e1c47ff5caab9a5a3db8e8653263de73ab60eee02fd5594b59c7207667a3a83bb709a39326ac0fe452424c12f  qt5.9.patch"