archrelease: copy trunk to community-any
[ArchLinux/community.git] / j4-dmenu-desktop / trunk / PKGBUILD
blobce7e5bc924075930e00c277308a0a24101e70389
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
8 pkgver=2.18
9 pkgrel=4
10 pkgdesc="Find .desktop files and offer you a menu to start an application using dmenu"
11 arch=('x86_64')
12 url="https://github.com/enkore/j4-dmenu-desktop"
13 license=('GPL3')
14 optdepends=('dmenu: The default backend'
15             'bemenu: An alternative backend')
16 makedepends=(
17     'cmake'
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'
24             'SKIP')
27 build() {
28     cmake -B build -S "$pkgname-r$pkgver" \
29         -DCMAKE_BUILD_TYPE='None' \
30         -DCMAKE_INSTALL_PREFIX='/usr'
31     cmake --build build
34 check() {
35     ctest --test-dir build --output-on-failure
38 package() {
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"