2019-12-20 14:49:35 +00:00
|
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
|
|
pkgname=kpublictransport
|
2020-03-27 16:52:46 +00:00
|
|
|
pkgver=0_git20200327
|
2019-12-20 14:49:35 +00:00
|
|
|
pkgrel=0
|
2020-03-27 16:52:46 +00:00
|
|
|
_commit="5c6f65553d87e84ae5ebbf1c6aecdb96cb68ac6d"
|
2019-12-20 14:49:35 +00:00
|
|
|
pkgdesc="Library to assist with accessing public transport timetables and other information"
|
2020-07-30 16:02:20 +00:00
|
|
|
arch="all !armhf"
|
2019-12-20 14:49:35 +00:00
|
|
|
url="https://github.com/kde/kpublictransport"
|
|
|
|
license="LGPL-2.0-or-later"
|
2020-03-27 16:52:46 +00:00
|
|
|
checkdepends="tzdata"
|
2019-12-20 14:49:35 +00:00
|
|
|
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev zlib-dev"
|
|
|
|
source="$pkgname-$_commit.tar.gz::https://github.com/kde/kpublictransport/archive/$_commit/kpublictransport-$_commit.tar.gz"
|
|
|
|
subpackages="$pkgname-dev"
|
|
|
|
builddir="$srcdir/$pkgname-$_commit"
|
|
|
|
|
|
|
|
build() {
|
2020-03-27 16:52:46 +00:00
|
|
|
cmake -B build \
|
|
|
|
-DCMAKE_BUILD_TYPE=None \
|
2019-12-20 14:49:35 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
2020-03-27 16:52:46 +00:00
|
|
|
make -C build
|
2019-12-20 14:49:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2020-03-27 16:52:46 +00:00
|
|
|
cd build
|
|
|
|
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
2019-12-20 14:49:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-03-27 16:52:46 +00:00
|
|
|
DESTDIR="$pkgdir" make -C build install
|
2019-12-20 14:49:35 +00:00
|
|
|
}
|
2020-03-27 16:52:46 +00:00
|
|
|
sha512sums="3b791bb04d12d000055a96384a61d7c61987aebf8e16be9e79b44ebd0b6339d337fea4afdb7f16c9773fb05fd91e7e3a2e4c278388393fb8ff6b43f6a769bf90 kpublictransport-5c6f65553d87e84ae5ebbf1c6aecdb96cb68ac6d.tar.gz"
|