aboutsummaryrefslogtreecommitdiffstats
path: root/community/lxqt-globalkeys/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/lxqt-globalkeys/APKBUILD')
-rw-r--r--community/lxqt-globalkeys/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/lxqt-globalkeys/APKBUILD b/community/lxqt-globalkeys/APKBUILD
new file mode 100644
index 00000000000..13a755d4119
--- /dev/null
+++ b/community/lxqt-globalkeys/APKBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
+pkgname=lxqt-globalkeys
+pkgver=1.4.0
+pkgrel=0
+pkgdesc="Daemon used to register global keyboard shortcuts"
+url="https://github.com/lxqt/lxqt-globalkeys"
+arch="all !armhf" # armhf blocked by liblxqt and kwindowsystem
+license="LGPL-2.0-or-later"
+makedepends="
+ cmake samurai lxqt-build-tools liblxqt-dev
+ qt5-qttools-dev kwindowsystem5-dev
+ "
+subpackages="$pkgname-dev"
+options="!check" # No testsuite
+source="https://github.com/lxqt/lxqt-globalkeys/releases/download/$pkgver/lxqt-globalkeys-$pkgver.tar.xz"
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake -B build -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ $CMAKE_CROSSOPTS .
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --build build --target install
+}
+
+sha512sums="
+de05c15dc6400978093c1f72340214d53200f8e7478ddee47fb7a3124be642f5d27c6bd53801b6a0205985666dcb481a89208b14d54cf2eb3dc36ccae5bdc1f5 lxqt-globalkeys-1.4.0.tar.xz
+"