2019-12-31 18:11:01 +00:00
|
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
|
|
pkgname=itinerary
|
2020-07-25 20:40:52 +00:00
|
|
|
pkgver=0_git20200401
|
|
|
|
_commit="33e7602d04e281b6021972e750d498e40ee1b980"
|
2020-03-27 16:26:23 +00:00
|
|
|
pkgrel=0
|
2019-12-31 18:11:01 +00:00
|
|
|
pkgdesc="Application to assist with usage of Travel Reservations"
|
|
|
|
url="https://github.com/KDE/itinerary"
|
2020-07-30 16:02:20 +00:00
|
|
|
arch="all !armhf"
|
2020-01-03 11:52:06 +00:00
|
|
|
license="LGPL-2.0-or-later"
|
2020-07-25 20:40:52 +00:00
|
|
|
depends="kirigami2 prison"
|
2019-12-31 18:11:01 +00:00
|
|
|
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtquickcontrols2-dev
|
|
|
|
qt5-qtlocation-dev ki18n-dev kcontacts-dev kpkpass-dev kitinerary-dev
|
2020-03-27 16:26:23 +00:00
|
|
|
kpublictransport-dev kdbusaddons-dev solid-dev shared-mime-info
|
|
|
|
kholidays-dev knotifications-dev"
|
2019-12-31 18:11:01 +00:00
|
|
|
source="$pkgname-$_commit.tar.gz::https://github.com/KDE/itinerary/archive/$_commit.tar.gz
|
2020-07-25 20:40:52 +00:00
|
|
|
0001-Remove-unnecessary-forward-declaration.patch"
|
2019-12-31 18:11:01 +00:00
|
|
|
builddir="$srcdir/$pkgname-$_commit"
|
2020-03-27 16:26:23 +00:00
|
|
|
options="!check" # Tests require newest version of kitinerary
|
2019-12-31 18:11:01 +00:00
|
|
|
|
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-31 18:11:01 +00:00
|
|
|
build() {
|
2020-03-27 16:26:23 +00:00
|
|
|
cmake -B build \
|
|
|
|
-DCMAKE_BUILD_TYPE=None \
|
2019-12-31 18:11:01 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2020-03-27 16:26:23 +00:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
|
|
|
make -C build
|
2019-12-31 18:11:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2020-03-27 16:26:23 +00:00
|
|
|
cd build
|
2019-12-31 18:11:01 +00:00
|
|
|
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-03-27 16:26:23 +00:00
|
|
|
DESTDIR="$pkgdir" make -C build install
|
2019-12-31 18:11:01 +00:00
|
|
|
}
|
2020-07-25 20:40:52 +00:00
|
|
|
sha512sums="133844df20d4ac657458aa0e6f5686f6aa0735085c76202f1fa1ccae840ebff90ec874f5ddbf10a93470cc68a3517db99134db7c91fbfc2219b119004e24e71d itinerary-33e7602d04e281b6021972e750d498e40ee1b980.tar.gz
|
|
|
|
858ea5391098e1fcc701004b2b632f939ce96207ef086398138f70a1fc073c314bacadcbf5e880c09c730e0fa8067dc18f0d007d69bf5ea14fca52a625d723a1 0001-Remove-unnecessary-forward-declaration.patch"
|