# Contributor: Luca Weiss # Maintainer: Luca Weiss pkgname=ayatana-indicator-display pkgver=22.9.4 pkgrel=1 pkgdesc="Ayatana Indicator Display" url="https://github.com/AyatanaIndicators/ayatana-indicator-display" arch="all" license="GPL-3.0-only" makedepends=" cmake cmake-extras geoclue-dev glib-dev intltool libayatana-common-dev libgudev-dev properties-cpp-dev samurai " subpackages="$pkgname-lang" source="https://github.com/AyatanaIndicators/ayatana-indicator-display/archive/$pkgver/ayatana-indicator-display-$pkgver.tar.gz" options="!check" # requires unpackaged dependencies (at least libqtdbusmock & libqtdbustest) 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 \ $CMAKE_CROSSOPTS . cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 9f0ca2c2b9eef151da959c58c3297465c55ddbc23494408c182fea57432dc34b13c5e63ab75f61d6ac7f7859321b6ec820e756ece37ffc68772c3a14c3fb9e2d ayatana-indicator-display-22.9.4.tar.gz "