upg waybar

This commit is contained in:
joborun linux 2023-12-24 23:41:49 +02:00
parent 4ef7d24625
commit 6f679de36d
3 changed files with 84 additions and 4 deletions

View File

@ -6,7 +6,7 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=waybar
pkgver=r3042.1fe4a4ee
pkgver=r3081.d2767fb8
pkgrel=02
pkgdesc='Highly customizable Wayland bar for Sway and Wlroots based compositors (GIT)'
url='https://github.com/Alexays/Waybar/'
@ -32,9 +32,9 @@ depends=('gtkmm3'
'libmpdclient'
'libsndio.so'
'libxkbcommon')
# 'libwireplumber')
# 'libwireplumber'
# 'playerctl')
makedepends=('git' 'cmake' 'meson' 'scdoc' 'wayland-protocols') # 'catch2': for tests
makedepends=('git' 'cmake' 'meson' 'scdoc' 'wayland-protocols') # 'catch2': for tests
backup=(etc/xdg/waybar/config
etc/xdg/waybar/style.css)
optdepends=('otf-font-awesome: Icons in the default configuration')
@ -58,6 +58,7 @@ build() {
-Dexperimental=true \
-Dcava=disabled \
-Dtests=disabled \
-Dsystemd=disabled \
"${srcdir}/build"
ninja -C "${srcdir}/build"
}
@ -73,4 +74,5 @@ arch=(x86_64)
sha256sums=(SKIP)
## c3455146984d7089a6c9374a2ad39e6c08e08e8170a4957860e0676dafc60270 waybar-r3042.1fe4a4ee-02-x86_64.pkg.tar.lz
## 2e39edb028ee99946a52888ed4ec4bf39272decceb610d2971f65f34f0c35bce waybar-r3081.d2767fb8-02-x86_64.pkg.tar.lz

77
waybar/PKGBUILD-arch Normal file
View File

@ -0,0 +1,77 @@
# Maintainer: Brett Cornwall <ainola@archlinux.org>
# Maintainer: Maxim Baz <archlinux at maximbaz dot com>
pkgname=waybar
pkgver=0.9.24
pkgrel=2
pkgdesc='Highly customizable Wayland bar for Sway and Wlroots based compositors'
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=(
'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-$pkgver.tar.gz::https://github.com/Alexays/Waybar/archive/$pkgver.tar.gz")
b2sums=('15774a78f2f7bb85d497e7f80a968b775bb42d285d0950e8e384962c6b947ea895eea2b30c0aba7ca671595ce59acd65e66cf8b67f2478ecad7564de50e4bfe6')
build() {
cd "Waybar-$pkgver"
# TODO tests depend on catch2 v3
CXXFLAGS+=" -std=c++20" \
meson --prefix=/usr \
--buildtype=plain \
--auto-features=enabled \
--wrap-mode=nodownload \
-Dexperimental=true \
-Dcava=disabled \
-Dtests=enabled \
build
ninja -C build
}
check() {
cd "Waybar-$pkgver"
meson test -C build --no-rebuild --suite waybar
}
package() {
cd "Waybar-$pkgver"
DESTDIR="$pkgdir" ninja -C build install
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}

View File

@ -19,3 +19,4 @@ cmake
scdoc