pmaports/kde/ktrip/APKBUILD

43 lines
1.3 KiB
Text
Raw Normal View History

2019-12-20 15:03:20 +00:00
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=ktrip
pkgver=0_git20200713
2019-12-20 15:03:20 +00:00
pkgrel=0
_commit="76d825fa466a6c685d6f736ea2f3de8489866317"
2019-12-20 15:03:20 +00:00
pkgdesc="A public transport assistant"
arch="all !armhf"
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"
depends="kirigami2 kirigami-addons"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev ki18n-dev kitemmodels-dev kconfig-dev kcontacts-dev kpublictransport-dev"
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"
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() {
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
2019-12-20 15:03:20 +00:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
make -C build
2019-12-20 15:03:20 +00:00
}
check() {
cd build
2019-12-20 15:03:20 +00:00
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
DESTDIR="$pkgdir" make -C build install
2019-12-20 15:03:20 +00:00
}
sha512sums="509b98f64bea601333cb888ea250e021a56df2b7d2ee66d4da7433e7a15a837f199c9a2e965742fa6154a15cf1c09e103dbde7f09cd341b7dc6e41bc5e1f9c5c ktrip-76d825fa466a6c685d6f736ea2f3de8489866317.tar.gz"