i3status: portability patch from Alpine.

This commit is contained in:
Juan RP 2015-05-13 08:20:44 +02:00
parent 098638c7d5
commit 8b2701203a
2 changed files with 19 additions and 3 deletions

View file

@ -0,0 +1,13 @@
--- include/i3status.h.orig
+++ include/i3status.h
@@ -11,6 +11,10 @@
#include <unistd.h>
#include <string.h>
+#ifndef GLOB_TILDE
+#define GLOB_TILDE 0
+#endif
+
#define BEGINS_WITH(haystack, needle) (strncmp(haystack, needle, strlen(needle)) == 0)
#define max(a, b) ((a) > (b) ? (a) : (b))

View file

@ -1,9 +1,8 @@
# Template file for 'i3status'
pkgname=i3status
version=2.9
revision=1
revision=2
build_pie=yes
build_style=gnu-makefile
hostmakedepends="asciidoc pkg-config"
makedepends="yajl-devel confuse-devel wireless_tools-devel alsa-lib-devel libcap-devel"
depends="libcap-progs"
@ -15,7 +14,11 @@ homepage="http://www.i3wm.org/i3status/"
distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
checksum=42eb09500c625fcac9a7125a29e7bf532ca4b8540942418ee3253aa15e5e9de3
post_install() {
do_build() {
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