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


                                                  
             
        
                                                                                        
                                                                                                         
                                          
                           









                                 
                                              
                       
                                    
                                                                                       
                                        

         
                        
                                         


                                             
                           


         
                

                                                                 


           
                                                              
 
                                                                                                                                                                    
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=purpose
pkgver=5.78.0
pkgrel=0
pkgdesc="Framework for providing abstractions to get the developer's purposes fulfilled"
arch="all !armhf !mips64 !s390x" # armhf blocked by qt5-qtdeclarative and mips64, s390x blocked by polkit
url="https://community.kde.org/Frameworks"
license="LGPL-2.1-or-later"
depends_dev="
	kaccounts-integration-dev
	kconfig-dev
	kcoreaddons-dev
	ki18n-dev
	kio-dev
	kirigami2-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	"
makedepends="$depends_dev extra-cmake-modules"
checkdepends="xvfb-run"
options="!check" # fails on builders
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/purpose-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"

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

check() {
	cd build
	# This is 1 of 2 tests
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E 'menutest'
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="793540ecb069ab89f685eb8a37509f547d3de6e84e8e56f9fb5b3f19f307f527f9e9141188f8a5a4f1ec2d10a9f2cdebe99440561797a35146e78b956b4db881  purpose-5.78.0.tar.xz"