# Contributor: Luca Weiss # Maintainer: Luca Weiss pkgname=ayatana-indicator-datetime pkgver=23.6.0 pkgrel=0 pkgdesc="Ayatana Indicator Date & Time Applet" url="https://github.com/AyatanaIndicators/ayatana-indicator-datetime" # s390x, riscv64: blocked by ayatana-indicator-messages # ppc64le: blocked by evolution-data-server arch="all !s390x !riscv64 !ppc64le" license="GPL-3.0-only" makedepends=" ayatana-indicator-messages-dev cmake cmake-extras dbus-test-runner-dev evolution-data-server-dev glib-dev gstreamer-dev gtest-dev intltool libaccounts-glib-dev libayatana-common-dev libical-dev libnotify-dev properties-cpp-dev util-linux-dev " checkdepends=" dbus-test-runner " subpackages="$pkgname-lang" source="https://github.com/AyatanaIndicators/ayatana-indicator-datetime/archive/$pkgver/ayatana-indicator-datetime-$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 # test-formatter: relies on glibc locale support CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "test-formatter" } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" b3529b2d710283836e1e2b66c7813ecd67f9cbed879aad7ab91244fa207c51a073d5dd9e3b49038fb75bbb1e2987ec1e50c20ad379d6dbc98814a5e800f7ee3b ayatana-indicator-datetime-23.6.0.tar.gz "