aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lxqt-globalkeys/APKBUILD
blob: ada57521e7e07b64ab7035fa55347ba661a36515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=lxqt-globalkeys
pkgver=0.16.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 lxqt-build-tools liblxqt-dev
	qt5-qttools-dev kwindowsystem-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 \
		-DCMAKE_BUILD_TYPE=None \
		-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="a6b2de35e3deb4852e9a8462871ba0fd40c9168653b210e361ff16b7dc5c74f9c98c6427cc595578eb9bb2a34c9be702c0af65fdfb92053b1f3813070629e55b  lxqt-globalkeys-0.16.0.tar.xz"