# Maintainer: pkgname=fcitx5-unikey pkgver=5.0.13 pkgrel=1 pkgdesc="Unikey Wrapper for Fcitx" url="https://github.com/fcitx/fcitx5-unikey" # armhf: extra-cmake-modules arch="all !armhf" license="LGPL-2.0-or-later AND GPL-2.0-or-later" makedepends=" cmake extra-cmake-modules fcitx5-dev fcitx5-qt-dev gettext-dev qt5-qtbase-dev samurai " subpackages="$pkgname-lang" source="$pkgname-$pkgver.tar.gz::https://github.com/fcitx/fcitx5-unikey/archive/refs/tags/$pkgver.tar.gz" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi CFLAGS="$CFLAGS -flto=auto" \ CXXFLAGS="$CXXFLAGS -flto=auto" \ cmake -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=None \ -DENABLE_TEST="$(want_check && echo ON || echo OFF)" \ $CMAKE_CROSSOPTS cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" f72481569bb8078ca1f30d68d591aad90df14ade206f2f9e452d39bc12e75cc005cdf2a0dc897b29ef5a59be5c38b6c05e66df49f2d6af22bd6aeedd63db2ae8 fcitx5-unikey-5.0.13.tar.gz "