# Contributor: Luca Weiss # Maintainer: Luca Weiss pkgname=libayatana-indicator pkgver=0.9.3 pkgrel=1 pkgdesc="Ayatana Indicators Shared Library" url="https://github.com/AyatanaIndicators/libayatana-indicator" arch="all" license="GPL-3.0-only" makedepends=" ayatana-ido-dev cmake glib-dev samurai " checkdepends="bash dbus-test-runner xvfb-run" subpackages="$pkgname-dev $pkgname-debug" source="https://github.com/AyatanaIndicators/libayatana-indicator/archive/$pkgver/libayatana-indicator-$pkgver.tar.gz" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DENABLE_TESTS=ON \ $CMAKE_CROSSOPTS cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { DESTDIR="$pkgdir" cmake --install build } debug() { amove usr/share } sha512sums=" cc2dd1e304e657cd8497d3107e7993122db6bbcf28c25dc1b41b250831cb76507226b5673abbd65bc954cbd5c3851df5528135df45d1cbb3de85c0c87c279452 libayatana-indicator-0.9.3.tar.gz "