From 98c96fe57a2b18b7058f4839d5eeb9ef0f4977d7 Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Thu, 12 Oct 2017 15:11:38 +0000 Subject: user/lxqt-powermanagement: new package --- user/lxqt-powermanagement/APKBUILD | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 user/lxqt-powermanagement/APKBUILD (limited to 'user/lxqt-powermanagement') diff --git a/user/lxqt-powermanagement/APKBUILD b/user/lxqt-powermanagement/APKBUILD new file mode 100644 index 000000000..c7a28b14f --- /dev/null +++ b/user/lxqt-powermanagement/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Kiyoshi Aman +# Maintainer: Kiyoshi Aman +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" -- cgit v1.2.3-70-g09d2