2019-12-20 14:49:35 +00:00
|
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
|
|
pkgname=kpublictransport
|
2020-07-25 19:24:17 +00:00
|
|
|
pkgver=0_git20200725
|
2019-12-20 14:49:35 +00:00
|
|
|
pkgrel=0
|
2020-07-25 19:24:17 +00:00
|
|
|
_commit="5425a081faf6952d71c00fd0aa4fd72b6f7a5f93"
|
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"
|
|
|
|
|
2020-09-11 13:40:04 +00:00
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
|
|
|
|
# qmlplugindump fails for armv7+qemu (pmb#1970). This is purely for
|
|
|
|
# packager knowledge and doesn't affect runtime, so we can disable it.
|
|
|
|
if [ "$CARCH" = "armv7" ]; then
|
|
|
|
sed -i "s/ecm_find_qmlmodule/# ecm_find_qmlmodule/g" CMakeLists.txt
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2019-12-20 14:49:35 +00:00
|
|
|
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-07-25 19:24:17 +00:00
|
|
|
sha512sums="7faa66a6d6304bc860edd8c4088a08fd7a2e03dc8d97c37eed7c950d0dc130349008d08745d228ee5925f6b1a047818dba80a65b13b2dc59efdf0eac0af403ca kpublictransport-5425a081faf6952d71c00fd0aa4fd72b6f7a5f93.tar.gz"
|