aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qps/APKBUILD
blob: 2331d3e0b02ed14b058c0a09d3fa0aa357dbc480 (plain) (blame)
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
34
35
36
# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=qps
pkgver=2.3.0
pkgrel=0
pkgdesc="LXQt process manager"
url="https://github.com/lxqt/qps"
arch="all !armhf !mips64 !riscv64" # limited by lxqt-config
license="LGPL-2.0-or-later"
makedepends="
	cmake lxqt-build-tools qt5-qtbase-dev qt5-qttools-dev
	libqtxdg-dev liblxqt-dev kwindowsystem-dev
	"
subpackages="$pkgname-doc"
options="!check" # No testsuite
source="https://github.com/lxqt/qps/releases/download/$pkgver/qps-$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="
1b884088fbdfeeaf4814453df4f7a345ebbb1825da0c09e768a655e8266f2089e7c2b9cca5f8d84dc0316a97d884a91ca5b8d9c2336a195c14432302db71171a  qps-2.3.0.tar.xz
"