blob: f93d5758208def4174ca333a6b0f63a0e93df365 (
plain)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# Maintainer: Bruno Ancona <bruno at powerball253 dot com>
pkgname=waybar-hyprland-git
pkgver=0.9.22.r9.gb7a527b1
pkgrel=1
pkgdesc='Highly customizable Wayland bar for Sway and Wlroots based compositors, with workspaces support for Hyprland (git version)'
arch=('x86_64' 'aarch64')
url='https://github.com/Alexays/Waybar/'
license=('MIT')
provides=('waybar')
conflicts=('waybar')
depends=(
'gtkmm3'
'libjsoncpp.so'
'libsigc++'
'fmt9'
'jack' 'libjack.so'
'wayland'
'libdate-tz.so'
'spdlog-git'
'gtk-layer-shell'
'libupower-glib.so'
'upower'
'libevdev'
'libinput'
'libpulse'
'libnl'
'libappindicator-gtk3'
'libdbusmenu-gtk3'
'libmpdclient'
'libsndio.so'
'libxkbcommon'
'wireplumber'
'playerctl'
)
makedepends=(
'git'
'cmake'
'catch2'
'meson'
'scdoc'
'wayland-protocols'
'curl'
)
backup=(
etc/xdg/waybar/config
etc/xdg/waybar/style.css
)
optdepends=(
'otf-font-awesome: Icons in the default configuration'
'cava: Cava plugin support'
)
source=("${pkgname}::git+https://github.com/Alexays/Waybar"
hyprctl.patch)
sha256sums=('SKIP'
'b4819ed456b27c355f24c460bcf3ff2fec6dade8c210263b64361c6744a9147c')
pkgver() {
cd "${srcdir}/${pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${srcdir}/${pkgname}"
git apply ../hyprctl.patch # use hyprctl to switch workspaces
}
build() {
cd "${srcdir}/${pkgname}"
rm -rf "${srcdir}/build"
meson --prefix=/usr \
--buildtype=plain \
--auto-features=enabled \
--wrap-mode=nodownload \
-Dexperimental=true \
-Dcava=disabled \
"${srcdir}/build"
ninja -C "${srcdir}/build"
}
package() {
DESTDIR="$pkgdir" ninja -C "${srcdir}/build" install
install -Dm644 "${srcdir}/${pkgname}/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|