36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'i3status'
|
|
pkgname=i3status
|
|
version=2.9
|
|
revision=3
|
|
hostmakedepends="asciidoc pkg-config"
|
|
makedepends="yajl-devel confuse-devel wireless_tools-devel alsa-lib-devel libcap-devel"
|
|
depends="libcap-progs"
|
|
conf_files="/etc/i3status.conf"
|
|
short_desc="Generates status bar to use with dzen2 or xmobar"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="BSD"
|
|
homepage="http://www.i3wm.org/i3status/"
|
|
distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
|
|
checksum=42eb09500c625fcac9a7125a29e7bf532ca4b8540942418ee3253aa15e5e9de3
|
|
|
|
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 i3status.c
|
|
sed -i '/GLOB_TILDE/s/glob(/g_glob(/g' src/process_runs.c i3status.c
|
|
sed -i 's/globfree(/g_globfree(/g' src/process_runs.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
|
|
}
|