aboutsummaryrefslogtreecommitdiffstats
path: root/community/ktrip/APKBUILD
blob: aa1337644be44c51e1c2bc6748183b397c53fb35 (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
37
38
39
40
41
42
43
44
45
46
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=ktrip
pkgver=21.06
pkgrel=0
pkgdesc="A public transport assistant"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
url="https://invent.kde.org/utilities/ktrip"
license="GPL-2.0-only OR GPL-3.0-only"
depends="
	kirigami-addons
	kirigami2
	"
makedepends="
	extra-cmake-modules
	kconfig-dev
	kcontacts-dev
	ki18n-dev
	kitemmodels-dev
	kpublictransport-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtquickcontrols2-dev
	"
source="https://download.kde.org/stable/plasma-mobile/$pkgver/ktrip-$pkgver.tar.xz"
options="!check" # No tests

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
ce1c742752561b4baf5c85bf34358fdb445378b02b73064261cf3250f69f66a668ca4798ba1bda79f5721a6fc161b94789915c012f964c4dbe997f064471055e  ktrip-21.06.tar.xz
"