summaryrefslogblamecommitdiff
path: root/user/lxqt-powermanagement/APKBUILD
blob: 0c571e7e029ccdebfcc47ec2ab5115f4b3bc910c (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                           
                            
            
            
        
                                             
                             
          
                                  
                   
                                                                          
                                                                             
                                                                      
                                                                                                                  
         








                                                                                          
                                          

         
                                                       

           
                                               
 
                                                                                                                                                                               
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=lxqt-powermanagement
pkgver=1.4.0
_lxqt=0.13.0
pkgrel=0
pkgdesc="Power management utilities for LXQt"
url="https://lxqt.github.io/"
arch="all"
options="!check"  # No test suite.
license="LGPL-2.1+"
depends=""
makedepends="cmake extra-cmake-modules lxqt-build-tools>=$_lxqt upower-dev
	liblxqt-dev>=${pkgver%.*} kidletime-dev qt5-qtsvg-dev qt5-qttools-dev
	solid-dev kwindowsystem-dev lxqt-globalkeys-dev>=${pkgver%.*}"
source="https://github.com/lxqt/lxqt-powermanagement/releases/download/$pkgver/lxqt-powermanagement-$pkgver.tar.xz
	revert-kwindowsystem-bump.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} -Bbuild
	make -C build
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE make -C build test
}

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

sha512sums="20b6b541fbf0eda1471af233f09744861428d74743b248b95be27c82a3d6fa1c71bfb7f4b5ff7a5408a37a6975a831b525290e8ec012e3546b0e69dfe63ccf7c  lxqt-powermanagement-1.4.0.tar.xz
076827624da9b85dc0bf3928e88f2144268f7ffcd87b369e634d4e4dd8a7f817b48a9e388f1c37a75de295d7db927af9e3b2442c655361eb57bc21a22905b7c2  revert-kwindowsystem-bump.patch"