summaryrefslogblamecommitdiff
path: root/user/kleopatra/APKBUILD
blob: 22ef8b74cee4970a86bf0acac2e2d31ad8d0cbc4 (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=18.08.0
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"

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="2a846b2503be748c07ed161bbbefff1129fc711118bc2394639a31c7a710ca7e370422c3bc35d6c2501041888c8d4c186550296910594e6e3b61dd307bed7761  kleopatra-18.08.0.tar.xz"