45 lines
1.4 KiB
Text
45 lines
1.4 KiB
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=itinerary
|
|
pkgver=0_git20180812
|
|
pkgrel=0
|
|
_commit="c47772e49de6662acd7769d5c8cef94379ea7bcf"
|
|
pkgdesc="Application to assist with usage of Travel Reservations "
|
|
url="https://github.com/KDE/itinerary"
|
|
arch="all"
|
|
license="LGPL-2.1"
|
|
depends="prison"
|
|
depends_dev="qt5-qtbase-dev qt5-qtquickcontrols2-dev qt5-qtlocation-dev ki18n-dev kcontacts-dev kpkpass-dev kitinerary-dev
|
|
kdbusaddons-dev shared-mime-info"
|
|
makedepends="$depends_dev extra-cmake-modules"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/kde/$pkgname/archive/$_commit.tar.gz"
|
|
subpackages=""
|
|
options="!check" # Broken
|
|
builddir="$srcdir/$pkgname-$_commit"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
if [ "$CBUILD" != "$CHOST" ]; then
|
|
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
|
|
fi
|
|
cmake \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DBUILD_SHARED_LIBS=True \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
|
|
-DCMAKE_C_FLAGS="$CFLAGS" \
|
|
${CMAKE_CROSSOPTS}
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
sha512sums="945703a1e28eabac2841a27bad2ee35c79697ac8b7814e33649c2c5b32bc58886ad7414153a692d6e6f59f7b4a61d21c7ba5b82337058406b3aafa2caea730fa itinerary-0_git20180812.tar.gz"
|