void-packages/srcpkgs/i3status/template
2013-05-06 14:36:08 +02:00

38 lines
1 KiB
Text

# Template file for 'i3status'
pkgname=i3status
version=2.7
revision=2
build_style=gnu-makefile
hostmakedepends="asciidoc pkg-config"
makedepends="yajl-devel confuse-devel wireless_tools-devel alsa-lib-devel libcap-devel"
short_desc="Generates status bar to use with dzen2 or xmobar"
maintainer="davehome <davehome@redthumb.info.tm>"
license="BSD"
homepage="http://i3.zekjur.net/i3status/"
distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
checksum=073f4e5de3bc5afc1f23c52ea52e2aa4b90ca8a012f28ba2c5fac3c33474a632
do_build() {
export CFLAGS="$CFLAGS -std=c99"
if [ "$CROSS_BUILD" ]; then
export PKG_CONFIG_PATH="$XBPS_CROSS_BASE/usr/lib/pkgconfig"
export PKG_CONFIG_SYSROOT_DIR="$XBPS_CROSS_BASE"
fi
make ${makejobs}
}
do_install() {
make DESTDIR=${DESTDIR} install
# detect dhcpcd.
sed -i -e "s#dhclient#dhcpcd#g" ${DESTDIR}/etc/i3status.conf
vinstall LICENSE 644 usr/share/licenses/${pkgname}
}
i3status_package() {
conf_files="/etc/i3status.conf"
depends="libcap-progs"
pkg_install() {
vmove all
}
}