aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qps/APKBUILD
blob: d1b4809fd087e13c71c20038d28ba0dfd9ab052a (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.4.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="
ee71ca88ba21644d0a144730b7e36131890c0626ffea6b2082bc3d8a2f7f6230335632a7dbb95aa0ae4068f278cca58c628c72fe74dda2a7c8a8021b0ff87825  qps-2.4.0.tar.xz
"