blob: 5b24883b90505e8f9c8c0d04cd1d642e188714ad (
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
# Maintainer: Umut Dag <me@umtdg.com>
# Modified PKGBUILD of https://aur.archlinux.org/packages/waybar-git
## options
: ${_use_sodeps:=false}
: ${_with_cava:=false}
: ${_with_gpsd:=false}
_pkgname="waybar"
pkgname="$_pkgname-temp-fan-power"
pkgver=0.15.0
pkgrel=1
pkgdesc='Highly customizable Wayland bar for Sway and Wlroots based compositors (with temperature module fan and power support)'
arch=('x86_64')
url="https://github.com/umtdg/Waybar"
license=('MIT')
depends=(
'fmt'
'gtk-layer-shell'
'gtkmm3'
'jack'
'jsoncpp'
'libdbusmenu-gtk3'
'libevdev'
'libinput'
'libmpdclient'
'libnl'
'libpulse'
'libsigc++'
'libwireplumber'
'libxkbcommon'
'playerctl'
'sndio'
'spdlog'
'upower'
'wayland'
)
makedepends=(
'catch2'
'cmake'
'git'
'glib2-devel' # gdbus-codegen
'meson'
'python-setuptools'
'scdoc' # to generate manpages
'wayland-protocols'
)
optdepends=(
'otf-font-awesome: Icons in the default configuration'
)
if [[ "${_with_cava::1}" == "t" ]]; then
depends+=('libcava')
fi
if [[ "${_with_gpsd::1}" == "t" ]]; then
depends+=('gpsd')
fi
conflicts=("$_pkgname" "$_pkgname-git")
provides=("$pkgname=${pkgver%.g*}")
backup=(
etc/xdg/waybar/config.jsonc
etc/xdg/waybar/style.css
)
_pkgsrc="$pkgname"
source=("$_pkgsrc::git+$url#branch=temperature-fan-power")
sha256sums=('SKIP')
build() {
local _meson_args=(
-Dexperimental=true
)
if [[ "${_with_cava::1}" != "t" ]]; then
_meson_args+=(-Dcava=disabled)
fi
if [[ "${_with_gpsd::1}" != "t" ]]; then
_meson_args+=(-Dgps=disabled)
fi
if ((!CHECKFUNC)); then
_meson_args+=(-Dtests=disabled)
fi
arch-meson "${_meson_args[@]}" "$_pkgsrc" build
meson compile -C build
}
check() {
meson test -C build --print-errorlogs --no-rebuild --suite waybar
}
package() {
if [[ "${_use_sodeps::1}" == "t" ]]; then
eval "depends+=(
'libatkmm-1.6.so'
'libcairomm-1.0.so'
'libfmt.so'
'libgtk-3.so'
'libjack.so'
'libjsoncpp.so'
'libpipewire-0.3.so'
'libsndio.so'
'libspdlog.so'
'libudev.so'
'libupower-glib.so'
)"
fi
meson install -C build --destdir "$pkgdir"
install -Dm644 "$_pkgsrc/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|