aboutsummaryrefslogtreecommitdiffstats
path: root/community/ktrip/APKBUILD
blob: 3e0628637e7f2dd43c7a1473b5953de0ae668650 (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.05
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="
760b7d652f236c59ece14701da2464aa73da12a7a60ace19d36c3bb151d84a96bd34256505b10e338be7bfe229610dd9f9f67188354f20ba08bf2ae78a42af76  ktrip-21.05.tar.xz
"