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