# Maintainer: Bradley Saulteaux pkgname=j4-dmenu-desktop pkgver=2.18 pkgrel=1 pkgdesc="A fast desktop menu" url="https://github.com/enkore/j4-dmenu-desktop" arch="all" license="GPL-3.0-only" depends="dmenu-virtual" makedepends="cmake samurai" source="$pkgname-$pkgver.tar.gz::https://github.com/enkore/j4-dmenu-desktop/archive/r$pkgver.tar.gz" builddir="$srcdir"/$pkgname-r$pkgver # Requires a desktop-style system layout not present in builders # needs catch options="!check" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DWITH_GIT_CATCH=OFF \ -DWITH_TESTS="$(want_check && echo ON || echo OFF)" cmake --build build } check() { # Test depends on /usr/share/applications existing on the system ctest --output-on-failure --test-dir build } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" f8b0c825d567d60da0fb418e6f0b24a6d9daa9fb142b194b0a8b249303f4e09b6694fce72bf031007ac67253e488fc7666d4ba7beb032bc74cc2a32aca0f6c96 j4-dmenu-desktop-2.18.tar.gz "