# Contributor: Luca Weiss # Maintainer: Luca Weiss pkgname=libayatana-appindicator pkgver=0.5.92 pkgrel=0 pkgdesc="Ayatana Application Indicators Shared Library" url="https://github.com/AyatanaIndicators/libayatana-appindicator" arch="all" license="LGPL-3.0-only" makedepends=" cmake dbus-glib-dev glib-dev gobject-introspection-dev gtk+3.0-dev libayatana-indicator-dev libdbusmenu-gtk3-dev samurai vala " checkdepends="dbus-test-runner xvfb-run" subpackages="$pkgname-dev" source="https://github.com/AyatanaIndicators/libayatana-appindicator/archive/$pkgver/libayatana-appindicator-$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 \ -DENABLE_BINDINGS_MONO=OFF \ $CMAKE_CROSSOPTS . cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -j1 } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 69f4eeeae55665608441f31bf354b22f393e25b3ed46873b98d0231960b4f2fb38c7902c559289f086b018b9596a634f2b2ee97b7ed12ded2a7a790c5d476f9f libayatana-appindicator-0.5.92.tar.gz "