aboutsummaryrefslogblamecommitdiffstats
path: root/community/kpublictransport/APKBUILD
blob: 62cff6a748f58d883a2ea3379681e07211be3329 (plain) (tree)
1
2
3
4
5


                                                  
              
        


































                                                                                                    
            
                                                                                                                                                                 
 
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kpublictransport
pkgver=21.04.3
pkgrel=0
# armhf blocked by qt5-qtdeclarative
arch="all !armhf"
url="https://invent.kde.org/libraries/kpublictransport"
pkgdesc="Library to assist with accessing public transport timetables and other data"
license="BSD-3-Clause AND LGPL-2.0-or-later AND MIT"
depends_dev="
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	zlib-dev
	protobuf-dev
	"
makedepends="$depends_dev
	extra-cmake-modules
	"
source="https://download.kde.org/stable/release-service/$pkgver/src/kpublictransport-$pkgver.tar.xz"
options="!check" # Broken for now
subpackages="$pkgname-dev"

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="
a952f11719dfc7223ca2a94ec59ac158f95a4034ed8c37918ab5b03cb06d5d0ad6270912e4823fcd535c745baec406e2b0f29360591d32ddd3b7591ad71c8688  kpublictransport-21.04.3.tar.xz
"