aboutsummaryrefslogtreecommitdiffstats
path: root/community/nwg-launchers/APKBUILD
blob: 39d78f93ac156fc8419f4723e25ccc8860ddfa12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Contributor: Matthew T Hoare <matthew.t.hoare@gmail.com>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Matthew T Hoare <matthew.t.hoare@gmail.com>
pkgname=nwg-launchers
pkgver=0.6.0
pkgrel=0
pkgdesc="GTK+ launchers for sway, i3 and some other window managers"
url="https://github.com/nwg-piotr/nwg-launchers"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	cmake
	gtk-layer-shell-dev
	gtkmm3-dev
	meson
	nlohmann-json
	"
source="https://github.com/nwg-piotr/nwg-launchers/archive/v$pkgver/nwg-launchers-$pkgver.tar.gz"
options="!check"  # no tests provided

for _i in bar dmenu grid; do
	subpackages="$subpackages $pkgname-$_i:_subpackage"
	depends="$depends $pkgname-$_i=$pkgver-r$pkgrel"
done

build() {
	abuild-meson \
		-Dlayer-shell=enabled \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

_subpackage() {
	local name=${subpkgname#$pkgname-}
	case "$subpkgname" in
		bar) pkgdesc="GTK-based button bar for Sway and other window managers";;
		dmenu) pkgdesc="GTK-based dmenu for Sway and other window managers";;
		grid) pkgdesc="GTK-based GNOME-like application grid for Sway and other window managers";;
	esac
	depends=""

	amove usr/bin/nwg$name
	amove usr/share/nwg-launchers/nwg$name
}

sha512sums="
39bc25d336f2992a807c7097e822ce3427d6069e5d04462bd37ab759c201d5db15b19400cc285891b9769076e44ee83fc07f180cf66f2d8d479f60fd155f49a2  nwg-launchers-0.6.0.tar.gz
"