cruxports/sfwbar/Pkgfile

26 lines
842 B
Plaintext
Raw Permalink Normal View History

2022-08-28 11:04:52 +00:00
# Description: taskbar designed for stacking Wayland compositors
# URL: https://github.com/LBCrion/sfwbar
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: gtk-layer-shell json-c
2024-02-26 16:47:32 +00:00
# Optional: alsa bluez iwd mpd pulseaudio
2022-08-28 11:04:52 +00:00
name=sfwbar
2024-02-26 16:47:32 +00:00
version=1.0_beta14
2022-08-28 11:04:52 +00:00
release=1
2023-08-19 20:11:47 +00:00
source=(https://github.com/LBCrion/$name/archive/v$version/$name-$version.tar.gz)
2022-08-28 11:04:52 +00:00
build() {
2024-02-26 16:47:32 +00:00
PKGMK_SFWBAR="--buildtype=release --prefix=/usr"
prt-get isinst bluez || PKGMK_SFWBAR+=" -D bluez=disabled"
prt-get isinst iwd || PKGMK_SFWBAR+=" -D iwd=disabled"
prt-get isinst mpd || PKGMK_SFWBAR+=" -D mpd=disabled"
prt-get isinst pulseaudio || PKGMK_SFWBAR+=" -D pulse=disabled"
2023-04-15 20:14:35 +00:00
2024-02-26 16:47:32 +00:00
cd $name-$version
meson setup build $PKGMK_SFWBAR
2022-12-23 13:49:02 +00:00
ninja -C build -j ${JOBS:-1}
2023-04-15 20:14:35 +00:00
2022-08-28 11:04:52 +00:00
DESTDIR=$PKG ninja -C build install
2023-04-15 20:14:35 +00:00
rm $PKG/usr/share/sfwbar/icons/weather/LICENSE
2022-08-28 11:04:52 +00:00
}