From 8b2701203a900aa808d885e54df750f61100274b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 13 May 2015 08:20:44 +0200 Subject: [PATCH] i3status: portability patch from Alpine. --- srcpkgs/i3status/patches/musl-fix.patch | 13 +++++++++++++ srcpkgs/i3status/template | 9 ++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/i3status/patches/musl-fix.patch diff --git a/srcpkgs/i3status/patches/musl-fix.patch b/srcpkgs/i3status/patches/musl-fix.patch new file mode 100644 index 00000000000..6e467682209 --- /dev/null +++ b/srcpkgs/i3status/patches/musl-fix.patch @@ -0,0 +1,13 @@ +--- include/i3status.h.orig ++++ include/i3status.h +@@ -11,6 +11,10 @@ + #include + #include + ++#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)) + diff --git a/srcpkgs/i3status/template b/srcpkgs/i3status/template index 684f3aad12b..ffa6c23e6d7 100644 --- a/srcpkgs/i3status/template +++ b/srcpkgs/i3status/template @@ -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