# Contributor: Luca Weiss # Maintainer: Luca Weiss pkgname=ayatana-indicator-bluetooth pkgver=22.9.1 pkgrel=1 pkgdesc="Ayatana System Indicator for Bluetooth Management" url="https://github.com/AyatanaIndicators/ayatana-indicator-bluetooth" arch="all" license="GPL-3.0-only" makedepends=" cmake cmake-extras intltool libayatana-common-dev vala " subpackages="$pkgname-lang" source="https://github.com/AyatanaIndicators/ayatana-indicator-bluetooth/archive/$pkgver/ayatana-indicator-bluetooth-$pkgver.tar.gz" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake -B build \ -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=" 8d5841b0704df1c57b52b9acb342befa494f00659f630c7ca652f4d4e40075728ac8cf010fa5ddd7c73898994872f3483a05261abd2bbd51ea8da54701e216e7 ayatana-indicator-bluetooth-22.9.1.tar.gz "