aboutsummaryrefslogblamecommitdiffstats
path: root/community/kgpg/APKBUILD
blob: 0ab7decb586cd566a2dd17a2fdfa071efda02846 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
              
        
                                                                                  


                                                                     




                                                                               
                                                                                        


                                        
                        
                                         

                                             
                           


         
                


                                                                            


           
                                                              

 
                                                                                                                                                                  
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kgpg
pkgver=21.04.0
pkgrel=0
arch="all !armhf !s390x !mips64" # kio, kiconthemes, kxmlgui, akonadi, kiconthemes
url="https://kde.org/applications/utilities/org.kde.kgpg"
pkgdesc="A simple interface for GnuPG, a powerful encryption utility"
license="GPL-2.0-or-later"
makedepends="extra-cmake-modules qt5-qtbase-dev karchive-dev kdoctools-dev
	kcodecs-dev kcoreaddons-dev kcrash-dev kdbusaddons-dev ki18n-dev
	kiconthemes-dev kjobwidgets-dev kio-dev knotifications-dev kservice-dev
	ktextwidgets-dev kxmlgui-dev kwidgetsaddons-dev kwindowsystem-dev
	akonadi-contacts-dev kcontacts-dev gpgme-dev"
source="https://download.kde.org/stable/release-service/$pkgver/src/kgpg-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

check() {
	cd build
	# kgpg-import fails too often
	# kgpg-encrypt and kgpg-export are broken
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "kgpg-(import|encrypt|export)"
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="2e3417284806b2422d235435778674302b3b515c67c9cf53b56b3bf2d9a883093334e360ee04d2524269bf9bdb4bf437cf0e0104bef78c37a7650cac16b1994d  kgpg-21.04.0.tar.xz"