Created
February 26, 2023 18:47
-
-
Save alanorth/35413acb59405d0ed471315b2eeab1ba to your computer and use it in GitHub Desktop.
PKGBUILD for waybar-git, updated to match official Arch Linux waybar package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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