# Contributor: Bart Ribbers # Maintainer: Luca Weiss pkgname=location-service pkgver=0_git20190111 pkgrel=1 _commit="b1d6a2fda0269be01a573b2b3726184a25168110" pkgdesc="Location service aggregating position/velocity/heading updates and exporting them over dbus" arch="x86_64" url="https://unity8.io" license="GPL-3.0 LGPL-3.0" depends="" depends_dev="boost-dev dbus-dev net-cpp-dev process-cpp-dev properties-cpp-dev json-c-dev libapparmor-dev gflags-dev glog-dev trust-store-dev" makedepends="$depends_dev cmake-extras gettext gtest-dev gmock dbus-cpp-dev" source="$pkgname-$_commit.tar.gz::https://github.com/ubports/$pkgname/archive/$_commit.tar.gz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" options="!check" # Several failures builddir="$srcdir/$pkgname-$_commit" build() { mkdir -p "$builddir"/build cd "$builddir"/build cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DLOCATION_SERVICE_ENABLE_GPS_PROVIDER=OFF .. make } check() { cd "$builddir"/build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { cd "$builddir"/build make DESTDIR="$pkgdir" install } sha512sums="72821a935f9401d5006ee76f1b034976773af621a3a9ad2dfab15af6e99c8cbfbcb32304a4e2d8ce072bfc38309db2058bc78b2fd1f5e7342bb7f51ff857ad93 location-service-b1d6a2fda0269be01a573b2b3726184a25168110.tar.gz"