mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-31 01:42:56 +02:00
i3status: portability patch from Alpine.
This commit is contained in:
parent
098638c7d5
commit
8b2701203a
2 changed files with 19 additions and 3 deletions
13
srcpkgs/i3status/patches/musl-fix.patch
Normal file
13
srcpkgs/i3status/patches/musl-fix.patch
Normal 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))
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
# Template file for 'i3status'
|
# Template file for 'i3status'
|
||||||
pkgname=i3status
|
pkgname=i3status
|
||||||
version=2.9
|
version=2.9
|
||||||
revision=1
|
revision=2
|
||||||
build_pie=yes
|
build_pie=yes
|
||||||
build_style=gnu-makefile
|
|
||||||
hostmakedepends="asciidoc pkg-config"
|
hostmakedepends="asciidoc pkg-config"
|
||||||
makedepends="yajl-devel confuse-devel wireless_tools-devel alsa-lib-devel libcap-devel"
|
makedepends="yajl-devel confuse-devel wireless_tools-devel alsa-lib-devel libcap-devel"
|
||||||
depends="libcap-progs"
|
depends="libcap-progs"
|
||||||
|
@ -15,7 +14,11 @@ homepage="http://www.i3wm.org/i3status/"
|
||||||
distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
|
distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
|
||||||
checksum=42eb09500c625fcac9a7125a29e7bf532ca4b8540942418ee3253aa15e5e9de3
|
checksum=42eb09500c625fcac9a7125a29e7bf532ca4b8540942418ee3253aa15e5e9de3
|
||||||
|
|
||||||
post_install() {
|
do_build() {
|
||||||
|
make CC=$CC ${makejobs}
|
||||||
|
}
|
||||||
|
do_install() {
|
||||||
|
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
||||||
# detect dhcpcd.
|
# detect dhcpcd.
|
||||||
sed -i -e "s#dhclient#dhcpcd#g" ${DESTDIR}/etc/i3status.conf
|
sed -i -e "s#dhclient#dhcpcd#g" ${DESTDIR}/etc/i3status.conf
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
|
|
Loading…
Add table
Reference in a new issue