kde/kpublictransport: upgrade to 0_git20200327 (!1112)

This commit is contained in:
Luca Weiss 2020-03-27 17:52:46 +01:00 committed by Alexey Min
parent b9d7a17bbc
commit 9bba316e91
No known key found for this signature in database
GPG key ID: EBF5ECFFFEE34DED

View file

@ -1,42 +1,33 @@
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kpublictransport
pkgver=0_git20191219
pkgver=0_git20200327
pkgrel=0
_commit="7ad1322efc70dfa30839bb46e790fa524c4967b1"
_commit="5c6f65553d87e84ae5ebbf1c6aecdb96cb68ac6d"
pkgdesc="Library to assist with accessing public transport timetables and other information"
arch="all !armhf"
url="https://github.com/kde/kpublictransport"
license="LGPL-2.0-or-later"
checkdepends="tzdata"
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"
prepare() {
default_prepare
mkdir "$builddir"/build
}
build() {
cd "$builddir"/build
cmake "$builddir" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
make
make -C build
}
check() {
cd "$builddir"/build
# navitiaparsertest requires some not yet implemented functions
# departuretest, journeytest and mergeutiltest broken
CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "(navitiaparser|departure|journey|mergeutil)test"
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
cd "$builddir"/build
DESTDIR="$pkgdir" make install
DESTDIR="$pkgdir" make -C build install
}
sha512sums="7a322b8930bcdff4acb33f00b5ec53bd5e72e930194769e7bce8269a02969a5b898c62b39b362b7f29fac43c4008c0f70a8979bb5917fe31f8889fe1c0a73175 kpublictransport-7ad1322efc70dfa30839bb46e790fa524c4967b1.tar.gz"
sha512sums="3b791bb04d12d000055a96384a61d7c61987aebf8e16be9e79b44ebd0b6339d337fea4afdb7f16c9773fb05fd91e7e3a2e4c278388393fb8ff6b43f6a769bf90 kpublictransport-5c6f65553d87e84ae5ebbf1c6aecdb96cb68ac6d.tar.gz"