pmaports/kde/kpublictransport/APKBUILD

33 lines
1.1 KiB
Text
Raw Normal View History

2019-12-20 14:49:35 +00:00
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kpublictransport
pkgver=0_git20200327
2019-12-20 14:49:35 +00:00
pkgrel=0
_commit="5c6f65553d87e84ae5ebbf1c6aecdb96cb68ac6d"
2019-12-20 14:49:35 +00:00
pkgdesc="Library to assist with accessing public transport timetables and other information"
arch="all !armhf !armv7" # armhf: pmaports#75, armv7: build.postmarketos.org#72
2019-12-20 14:49:35 +00:00
url="https://github.com/kde/kpublictransport"
license="LGPL-2.0-or-later"
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() {
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
2019-12-20 14:49:35 +00:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
make -C build
2019-12-20 14:49:35 +00:00
}
check() {
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
2019-12-20 14:49:35 +00:00
}
package() {
DESTDIR="$pkgdir" make -C build install
2019-12-20 14:49:35 +00:00
}
sha512sums="3b791bb04d12d000055a96384a61d7c61987aebf8e16be9e79b44ebd0b6339d337fea4afdb7f16c9773fb05fd91e7e3a2e4c278388393fb8ff6b43f6a769bf90 kpublictransport-5c6f65553d87e84ae5ebbf1c6aecdb96cb68ac6d.tar.gz"