2011-11-23 08:48:31 +01:00
|
|
|
# Template file for 'i3status'
|
|
|
|
pkgname=i3status
|
2013-04-01 16:11:39 +02:00
|
|
|
version=2.7
|
2013-05-06 14:36:08 +02:00
|
|
|
revision=2
|
2012-06-05 14:53:49 +02:00
|
|
|
build_style=gnu-makefile
|
2013-05-06 14:36:08 +02:00
|
|
|
hostmakedepends="asciidoc pkg-config"
|
|
|
|
makedepends="yajl-devel confuse-devel wireless_tools-devel alsa-lib-devel libcap-devel"
|
2013-04-01 16:11:39 +02:00
|
|
|
short_desc="Generates status bar to use with dzen2 or xmobar"
|
2011-11-23 08:48:31 +01:00
|
|
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
|
|
|
license="BSD"
|
2013-04-01 16:11:39 +02:00
|
|
|
homepage="http://i3.zekjur.net/i3status/"
|
2012-06-05 14:53:49 +02:00
|
|
|
distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
|
2013-04-01 16:11:39 +02:00
|
|
|
checksum=073f4e5de3bc5afc1f23c52ea52e2aa4b90ca8a012f28ba2c5fac3c33474a632
|
2011-11-23 08:48:31 +01:00
|
|
|
|
2013-05-06 14:36:08 +02:00
|
|
|
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
|
|
|
|
|
2012-12-16 09:18:56 +01:00
|
|
|
# detect dhcpcd.
|
|
|
|
sed -i -e "s#dhclient#dhcpcd#g" ${DESTDIR}/etc/i3status.conf
|
2011-11-23 08:48:31 +01:00
|
|
|
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
|
|
|
}
|
2013-04-12 16:39:50 +02:00
|
|
|
|
|
|
|
i3status_package() {
|
|
|
|
conf_files="/etc/i3status.conf"
|
|
|
|
depends="libcap-progs"
|
|
|
|
pkg_install() {
|
2013-05-06 14:36:08 +02:00
|
|
|
vmove all
|
2013-04-12 16:39:50 +02:00
|
|
|
}
|
|
|
|
}
|