void-packages/srcpkgs/i3status/template
maxice8 1842131117
i3status: update to 2.12.
Closes #14329.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-05-13 14:37:31 +02:00

39 lines
1.3 KiB
Bash

# Template file for 'i3status'
pkgname=i3status
version=2.12
revision=1
hostmakedepends="asciidoc pkg-config"
makedepends="alsa-lib-devel confuse-devel libcap-devel libnl3-devel
pulseaudio-devel yajl-devel"
depends="libcap-progs"
short_desc="Status bar generator for i3bar, dzen2, xmobar or similar programs"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
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=6fc6881536043391ab4bed369d956f99d1088965d8bcebed18d1932de3ba791a
conf_files="/etc/i3status.conf"
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" libglob-devel";;
esac
do_build() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
sed -i '/include/s,glob.h,libglob/glob.h,g' src/process_runs.c src/print_cpu_temperature.c i3status.c
sed -i '/GLOB_TILDE/s/glob(/g_glob(/g' src/process_runs.c src/print_cpu_temperature.c i3status.c
sed -i 's/globfree(/g_globfree(/g' src/process_runs.c src/print_cpu_temperature.c i3status.c
export LIBS="$XBPS_CROSS_BASE/usr/lib/libglob.a"
;;
esac
make CC=$CC ${makejobs}
}
do_install() {
make PREFIX=/usr DESTDIR=${DESTDIR} install
# detect dhcpcd.
sed -i -e "s#dhclient#dhcpcd#g" ${DESTDIR}/etc/i3status.conf
vlicense LICENSE
}