2019-12-20 15:03:20 +00:00
|
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
|
|
pkgname=ktrip
|
2020-07-25 20:05:58 +00:00
|
|
|
pkgver=0_git20200713
|
2019-12-20 15:03:20 +00:00
|
|
|
pkgrel=0
|
2020-07-25 20:05:58 +00:00
|
|
|
_commit="76d825fa466a6c685d6f736ea2f3de8489866317"
|
2019-12-20 15:03:20 +00:00
|
|
|
pkgdesc="A public transport assistant"
|
2020-07-30 16:02:20 +00:00
|
|
|
arch="all !armhf"
|
2020-07-25 20:05:58 +00:00
|
|
|
url="https://invent.kde.org/utilities/ktrip"
|
2019-12-20 15:03:20 +00:00
|
|
|
license="GPL-2.0-only OR GPL-3.0-only"
|
2020-07-25 20:05:58 +00:00
|
|
|
depends="kirigami2 kirigami-addons"
|
2020-03-27 16:58:14 +00:00
|
|
|
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev ki18n-dev kitemmodels-dev kconfig-dev kcontacts-dev kpublictransport-dev"
|
2020-07-25 20:05:58 +00:00
|
|
|
source="https://invent.kde.org/utilities/ktrip/-/archive/$_commit/ktrip-$_commit.tar.gz"
|
2019-12-20 15:03:20 +00:00
|
|
|
options="!check" # No tests
|
|
|
|
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 15:03:20 +00:00
|
|
|
build() {
|
2020-03-27 16:58:14 +00:00
|
|
|
cmake -B build \
|
|
|
|
-DCMAKE_BUILD_TYPE=None \
|
2019-12-20 15:03:20 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
2020-03-27 16:58:14 +00:00
|
|
|
make -C build
|
2019-12-20 15:03:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2020-03-27 16:58:14 +00:00
|
|
|
cd build
|
2019-12-20 15:03:20 +00:00
|
|
|
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-03-27 16:58:14 +00:00
|
|
|
DESTDIR="$pkgdir" make -C build install
|
2019-12-20 15:03:20 +00:00
|
|
|
}
|
2020-07-25 20:05:58 +00:00
|
|
|
sha512sums="509b98f64bea601333cb888ea250e021a56df2b7d2ee66d4da7433e7a15a837f199c9a2e965742fa6154a15cf1c09e103dbde7f09cd341b7dc6e41bc5e1f9c5c ktrip-76d825fa466a6c685d6f736ea2f3de8489866317.tar.gz"
|