# Contributor: Luca Weiss # Maintainer: Luca Weiss pkgname=qmenumodel pkgver=0.9.1 pkgrel=0 pkgdesc="Qt5 renderer for Ayatana Indicators" url="https://github.com/AyatanaIndicators/qmenumodel" arch="all" license="LGPL-3.0-only" depends_dev="qt5-qtdeclarative-dev" makedepends="$depends_dev cmake cmake-extras" checkdepends="dbus-test-runner py3-dbus py3-gobject3" subpackages="$pkgname-dev" source="https://github.com/AyatanaIndicators/qmenumodel/archive/$pkgver/qmenumodel-$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=None \ $CMAKE_CROSSOPTS . cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 358aff21dfb00f0baa8f4b9740fd1cdb8f531b8d9d896e2d90be4ae528fac7ac8646202f8cbdd414051f87f36b07e7c60ab7ca572ae00bd4f6cc2fcc6631493c qmenumodel-0.9.1.tar.gz "