void-packages/srcpkgs/ironbar/template

36 lines
1.1 KiB
Bash

# Template file for 'ironbar'
pkgname=ironbar
version=0.16.0
revision=1
build_style=cargo
hostmakedepends="pkg-config"
makedepends="gtk+3-devel gtk-layer-shell-devel pulseaudio-devel"
short_desc="Customisable gtk-layer-shell wlroots/sway bar"
maintainer="caughtquick <abhijit@sipahimalani.me>"
license="MIT"
homepage="https://github.com/JakeStanger/ironbar"
changelog="https://github.com/JakeStanger/ironbar/releases/"
distfiles="https://github.com/JakeStanger/ironbar/archive/refs/tags/v${version}.tar.gz"
checksum=5b4e96a5f1c96406fa99299b8ad2c0f97dc56c44237b8328cfb64c8daf17d3b5
if [ "${XBPS_WORDSIZE}" == "${XBPS_TARGET_WORDSIZE}" ]; then
makedepends+=" LuaJIT-devel"
else
# Disable cairo feature that requires LuaJIT; otherwise,
# keep this feature list in sync with Cargo.toml
configure_args+=" --no-default-features
--features=cli,clipboard,clock,config+all,focused,http,ipc
--features=launcher,music+all,network_manager,notifications
--features=sys_info,tray,upower,volume,workspaces+all
"
fi
post_install() {
vlicense LICENSE
local f
for f in examples/*; do
[ -f "${f}" ] && vsconf "${f}"
done
}