summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: de310ac95c4b3bba2cb21b865d8f1ad01742afd7 (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
# Maintainer: rawalrauf <rawalbaloch78@gmail.com>
pkgname=waybar-active-last
pkgver=0.14.0
pkgrel=6
pkgdesc='Highly customizable Wayland bar for Sway and Wlroots based compositors (with active-last patch)'
arch=('x86_64')
url='https://github.com/Alexays/Waybar/'
license=('MIT')
depends=(
  'gtk3'
  'gtkmm3'
  'libdbusmenu-gtk3'
  'libevdev'
  'libinput'
  'libmpdclient'
  'libnl'
  'libpulse'
  'libsigc++'
  'jsoncpp'
  'spdlog'
  'wayland'
  'fmt'
  'jack'
  'libxkbcommon'
  'upower'
  'gpsd'
  'gtk-layer-shell'
  'wireplumber'
  'libsndio.so'
)
makedepends=(
  'cmake'
  'meson'
  'scdoc'
  'wayland-protocols'
  'glib2-devel'
)
optdepends=(
  'otf-font-awesome: Icons in the default configuration'
)
provides=('waybar')
conflicts=('waybar')
source=(
  "waybar-$pkgver.tar.gz::https://github.com/Alexays/Waybar/archive/$pkgver.tar.gz"
  'active-last.patch'
)
sha256sums=(
  'SKIP'
  'SKIP'
)

prepare() {
  cd "Waybar-$pkgver"
  patch -p1 < "$srcdir/active-last.patch"
}

build() {
  cd "Waybar-$pkgver"
  meson setup --prefix=/usr \
              --libexecdir=lib \
              --sbindir=bin \
              --buildtype=plain \
              --auto-features=enabled \
              --wrap-mode=default \
              -D b_lto=false \
              -D b_pie=true \
              -D cava=disabled \
              build
  meson compile -C build
}

package() {
  cd "Waybar-$pkgver"
  meson install -C build --destdir "$pkgdir"
  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}