1 # Maintainer: Brett Cornwall <ainola@archlinux.org>
2 # Contributor: Dimitrios Vogiatzis
3 # Contributor: physkets
4 # Contributor: Justin Dray
5 # Contributor: Bill Kolokithas
7 pkgname=j4-dmenu-desktop
10 pkgdesc="Find .desktop files and offer you a menu to start an application using dmenu"
12 url="https://github.com/enkore/j4-dmenu-desktop"
14 optdepends=('dmenu: The default backend'
15 'bemenu: An alternative backend')
18 'git' # For cloning "catch"; upstream doesn't use a system installation
20 source=("$pkgname-$pkgver.tar.gz::$url/archive/r$pkgver.tar.gz"
21 "$pkgname-$pkgver.tar.gz.sig::$url/releases/download/r$pkgver/r$pkgver.tar.gz.sig")
22 validpgpkeys=('A1774C1B37DC1DCEDB65EE469B8450B91D1362C1') # Marian Beermann <public@enkore.de>
23 sha256sums=('77c5605d0c1291bcf1e13b186ea3b32ddf4753de0d0e39127b4a7d2098393e25'
28 cmake -B build -S "$pkgname-r$pkgver" \
29 -DCMAKE_BUILD_TYPE='None' \
30 -DCMAKE_INSTALL_PREFIX='/usr'
35 ctest --test-dir build --output-on-failure
39 DESTDIR="$pkgdir" cmake --install build
40 cd "$pkgname-r$pkgver"
41 install -Dm0644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
42 install -dm0755 "$pkgdir/usr/share/man/man1"
43 gzip < j4-dmenu-desktop.1 > "$pkgdir/usr/share/man/man1/j4-dmenu-desktop.1.gz"