summaryrefslogblamecommitdiff
path: root/user/ksysguard/APKBUILD
blob: 65fce48697d3dd6971a5338cf70c04b5b9a4e9c3 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                  
                                                     
                 
              



                                    
                   




                                                                               
                                        
                                                                                 

                                           

         









                                                                                          
                                    



            



                                          


                                      

                                                                                                                                                                      
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox-kde@adelielinux.org>
pkgname=ksysguard
pkgver=5.17.90
pkgrel=0
pkgdesc="KDE system monitor utility"
url="https://www.kde.org/"
arch="all"
license="LGPL-2.1+"
depends=""
makedepends="qt5-qtbase-dev kconfig-dev kcoreaddons-dev kdbusaddons-dev kio-dev
	ki18n-dev kiconthemes-dev kinit-dev kitemviews-dev knewstuff-dev
	knotifications-dev kwindowsystem-dev libksysguard-dev
	cmake extra-cmake-modules kdoctools-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.kde.org/unstable/plasma/$pkgver/ksysguard-$pkgver.tar.xz
	ksysguard-5.6.5-rindex-header.patch
	"

build() {
	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() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="223a0ba86b9d7dbcb465245a500fa6c3106d40ea0010d8b5e3a34fd6a75c031f07bc8717f7309c45dceabb2b3cf1d5fc0aa0d73ff75eecdb03e54644e0c55cea  ksysguard-5.17.90.tar.xz
75e07b80c647bc6fdfb092ad3855813ef6bfe91b0ad03562dacfe4e680cfdee201364a2e452db162822045684635c1791ab2392c47d8e5c560c9e617a970cf39  ksysguard-5.6.5-rindex-header.patch"