aboutsummaryrefslogblamecommitdiffstats
path: root/community/kdesu/APKBUILD
blob: 8553bbcbe40ae07e711e4b56337edf226dcf586c (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                  

             
                                                     

                                      

                                          










                           
                       
                                                                                     
                                                     
                                                                                              
              
 

                                                                           
         
                        
                                         
                                             

                                            
                           


         
                
                                                   


           
                                               
 
            
                                                                                                                                                     
 
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kdesu
pkgver=5.84.0
pkgrel=0
pkgdesc="Integration with su for elevated privileges"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
url="https://community.kde.org/Frameworks"
license="LGPL-2.1-only"
depends_dev="
	kcoreaddons-dev
	ki18n-dev
	kpty-dev
	kservice-dev
	"
makedepends="$depends_dev
	doxygen
	extra-cmake-modules
	qt5-qttools-dev
	"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kdesu-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
# Since the goal of this library is to elevate privileges, suid being needed should be obvious
options="suid"

[ "$CARCH" = "ppc64le" ] && options="$options !check" # kdesutest is broken

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

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
ebc9ac1df994f30c6d74682dcf42b10f4f850b27e871d3b31b5bb067d906f3ab681dfd052c71d88ade873d98923e5360e8770f14d0104fde182b8eeba7084c2a  kdesu-5.84.0.tar.xz
"