summaryrefslogtreecommitdiff
path: root/user/lxqt-powermanagement
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2017-10-12 15:11:38 +0000
committerKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2017-10-12 15:11:38 +0000
commit98c96fe57a2b18b7058f4839d5eeb9ef0f4977d7 (patch)
tree26b56da4cac89abf2688e4d9e019a9564a601a3e /user/lxqt-powermanagement
parent49cd10a8d85f7019bcaadc214444a6245f73118e (diff)
downloadpackages-98c96fe57a2b18b7058f4839d5eeb9ef0f4977d7.tar.gz
packages-98c96fe57a2b18b7058f4839d5eeb9ef0f4977d7.tar.bz2
packages-98c96fe57a2b18b7058f4839d5eeb9ef0f4977d7.tar.xz
packages-98c96fe57a2b18b7058f4839d5eeb9ef0f4977d7.zip
user/lxqt-powermanagement: new package
Diffstat (limited to 'user/lxqt-powermanagement')
-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..c7a28b14f
--- /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"