# Contributor: Luca Weiss # Maintainer: Luca Weiss pkgname=ayatana-indicator-messages pkgver=22.9.0 pkgrel=2 pkgdesc="Ayatana Indicator Messages Applet" url="https://github.com/AyatanaIndicators/ayatana-indicator-messages" arch="all !s390x !riscv64" # blocked by accountsservice license="GPL-3.0-only" makedepends=" accountsservice-dev cmake cmake-extras dbus-test-runner-dev glib-dev gtest-dev gtk-doc intltool samurai vala " checkdepends="dbus dbus-test-runner py3-dbus py3-dbusmock" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="https://github.com/AyatanaIndicators/ayatana-indicator-messages/archive/$pkgver/ayatana-indicator-messages-$pkgver.tar.gz" options="!check" # indicator-test times out after 60s due to hanging and nothing reaching the end of it 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 ctest } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 54b2693c65991d600a5cbf88f91d77d72e55eb30dcc7ab53ea8208f054e8bfc215018920bf43497f8b081499689b8b849e468bb8ca0f337e9d67cdd52cfd1b4d ayatana-indicator-messages-22.9.0.tar.gz "