Skip to content

Instantly share code, notes, and snippets.

@alanorth
Created February 26, 2023 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanorth/35413acb59405d0ed471315b2eeab1ba to your computer and use it in GitHub Desktop.
Save alanorth/35413acb59405d0ed471315b2eeab1ba to your computer and use it in GitHub Desktop.
PKGBUILD for waybar-git, updated to match official Arch Linux waybar package
# Maintainer: Alexis Rouillard <contact@arouillard.fr>
pkgname=waybar-git
pkgver=r2429.09142fa3
pkgrel=1
pkgdesc='Highly customizable Wayland bar for Sway and Wlroots based compositors (GIT)'
arch=('x86_64')
url="https://github.com/Alexays/Waybar/"
license=('MIT')
depends=(
'gtkmm3'
'libjsoncpp.so'
'libsigc++'
'fmt'
'jack' 'libjack.so'
'wayland'
'libdate-tz.so'
'libspdlog.so'
'gtk-layer-shell'
'libupower-glib.so'
'upower'
'libevdev'
'libinput'
'libpulse'
'libnl'
'libappindicator-gtk3'
'libdbusmenu-gtk3'
'libmpdclient'
'libsndio.so'
'libxkbcommon'
'libwireplumber'
'playerctl'
)
makedepends=(
'git'
'cmake'
'catch2'
'meson'
'scdoc' # For generating manpages
'wayland-protocols'
)
backup=(
etc/xdg/waybar/config
etc/xdg/waybar/style.css
)
optdepends=(
'otf-font-awesome: Icons in the default configuration'
)
source=("${pkgname}::git+https://github.com/Alexays/Waybar")
sha1sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${pkgname}"
}
build() {
ls
cd "${srcdir}/${pkgname}"
meson --prefix=/usr \
--buildtype=plain \
--auto-features=enabled \
--wrap-mode=nodownload \
-Dtests=disabled \
build
ninja -C build
}
package() {
cd "${srcdir}/${pkgname}"
DESTDIR="$pkgdir" ninja -C build install
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment