summaryrefslogtreecommitdiff
path: root/user/lxqt-powermanagement/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/lxqt-powermanagement/APKBUILD')
-rw-r--r--user/lxqt-powermanagement/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/user/lxqt-powermanagement/APKBUILD b/user/lxqt-powermanagement/APKBUILD
new file mode 100644
index 000000000..d7d6b7667
--- /dev/null
+++ b/user/lxqt-powermanagement/APKBUILD
@@ -0,0 +1,45 @@
+# 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"