49 lines
1.3 KiB
Bash
49 lines
1.3 KiB
Bash
# Template file for 'i3status'
|
|
pkgname=i3status
|
|
version=2.13
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-builddir $(vopt_if pulseaudio '' --disable-pulseaudio)"
|
|
hostmakedepends="automake asciidoc pkg-config xmlto"
|
|
makedepends="alsa-lib-devel confuse-devel libcap-devel libnl3-devel
|
|
yajl-devel $(vopt_if pulseaudio pulseaudio-devel)"
|
|
depends="libcap-progs"
|
|
short_desc="Status bar generator for i3bar, dzen2, xmobar or similar programs"
|
|
maintainer="Lugubris <lugubris@disroot.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://www.i3wm.org/i3status/"
|
|
#changelog="https://raw.githubusercontent.com/i3/i3status/master/CHANGELOG"
|
|
distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
|
|
checksum=ce89c9ff8565f62e88299f1a611229afdfc356b4e97368a5f8c4f06ad2fa1466
|
|
conf_files="/etc/i3status.conf"
|
|
|
|
build_options="pulseaudio"
|
|
build_options_default="pulseaudio"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl)
|
|
makedepends+=" libglob-devel"
|
|
export LIBS="${XBPS_CROSS_BASE}/usr/lib/libglob.a"
|
|
;;
|
|
esac
|
|
|
|
post_patch() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl)
|
|
vsed \
|
|
-e '/include/s,glob.h,libglob/glob.h,g' \
|
|
-e '/GLOB_TILDE/s/glob(/g_glob(/g' \
|
|
-e 's/globfree(/g_globfree(/g' \
|
|
-i src/process_runs.c src/print_cpu_temperature.c i3status.c
|
|
;;
|
|
esac
|
|
}
|
|
|
|
pre_configure() {
|
|
autoreconf -vfi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|