summaryrefslogblamecommitdiff
path: root/user/lxqt-powermanagement/APKBUILD
blob: c7a28b14fe209835b870d116ab02c7ac830aecba (plain) (tree)












































                                                                                                                                                                                 
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=lxqt-powermanagement
pkgver=0.11.1
pkgrel=0
pkgdesc="Power management utilities for LXQt."
url="http://lxqt.org"
arch="all"
license="LGPL-2.1+"
depends=""
depends_dev=""
makedepends="cmake extra-cmake-modules lxqt-build-tools liblxqt-dev upower-dev kidletime-dev qt5-qtsvg-dev qt5-qttools-dev kwindowsystem-dev solid-dev $depends_dev"
install=""
subpackages=""
source="https://github.com/lxde/lxqt-powermanagement/releases/download/$pkgver/lxqt-powermanagement-$pkgver.tar.xz"
builddir="$srcdir/lxqt-powermanagement-$pkgver"

build() {
	cd "$builddir"
	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" \
		-DPULL_TRANSLATIONS=False \
		${CMAKE_CROSSOPTS}
	make
}

check() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="4e75075bee9c5d1daedfa001a0e3c4743cb21342c4eec663965e408e4d0ffee7d1ddf6db298bfae4337d6f75127c9f31f054f09231df5b6284247d755033bf1f  lxqt-powermanagement-0.11.1.tar.xz"