aboutsummaryrefslogtreecommitdiffstats
path: root/community/waybar/APKBUILD
blob: 62f85ae3fd84b01d9674c519c9379bbec7cb2f1a (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
53
54
55
56
57
58
59
60
61
62
# Contributor: Luca Weiss <luca@z3ntu.xyz>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=waybar
pkgver=0.9.12
pkgrel=0
pkgdesc="Highly customizable Wayland bar for Sway and Wlroots based compositors"
url="https://github.com/Alexays/Waybar/"
arch="all"
license="MIT"
depends="ttf-font-awesome"
makedepends="
	date-dev
	eudev-dev
	fmt-dev
	gtk-layer-shell-dev
	gtkmm3-dev
	jsoncpp-dev
	libdbusmenu-gtk3-dev
	libinput-dev
	libmpdclient-dev
	libnl3-dev
	meson
	pulseaudio-dev
	scdoc
	spdlog-dev
	sndio-dev
	"
subpackages="$pkgname-doc"
source="https://github.com/Alexays/Waybar/archive/$pkgver/Waybar-$pkgver.tar.gz
	config-fix-clock.patch
	"
options="!check" # No test suite
builddir="$srcdir/Waybar-$pkgver"

build() {
	# -Ddefault_library=shared - to override the project defaults.
	abuild-meson \
		-Db_lto=true \
		-Ddefault_library=shared \
		-Dlibnl=enabled \
		-Dlibudev=enabled \
		-Dlibevdev=disabled \
		-Dpulseaudio=enabled \
		-Dsystemd=disabled \
		-Ddbusmenu-gtk=enabled \
		-Dman-pages=enabled \
		-Dmpd=enabled \
		-Dgtk-layer-shell=enabled \
		-Drfkill=enabled \
		-Dsndio=enabled \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

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

sha512sums="
c035140ca0d47ae2cbc0313e25dc206c116b5b6f7a4e6192c7d40a9bd0ef18b8bfafdc8aeea2a85d670dccceda1e3942b6b3e3a451f51a6e68d25edf0ccb1b05  Waybar-0.9.12.tar.gz
173857d836630925658af5d1c1aa3630fe91d08a8bad09a63d724fd6dc622fc063a9bc936008dfe776573a263f1a90ad9d9f3e11eba6930448dc0a132e106af2  config-fix-clock.patch
"