i3status: use system glob(3) on musl

GLOB_TILDE is supported in musl 1.1.24+
This commit is contained in:
Đoàn Trần Công Danh 2021-03-11 19:13:26 +07:00
parent b2085b084c
commit 1df8080970
1 changed files with 2 additions and 21 deletions

View File

@ -1,9 +1,9 @@
# Template file for 'i3status'
pkgname=i3status
version=2.13
revision=1
revision=2
build_style=gnu-configure
configure_args="--disable-builddir $(vopt_if pulseaudio '' --disable-pulseaudio)"
configure_args="--disable-builddir $(vopt_enable pulseaudio)"
hostmakedepends="automake asciidoc pkg-config xmlto"
makedepends="alsa-lib-devel confuse-devel libcap-devel libnl3-devel
yajl-devel $(vopt_if pulseaudio pulseaudio-devel)"
@ -20,25 +20,6 @@ conf_files="/etc/i3status.conf"
build_options="pulseaudio"
build_options_default="pulseaudio"
case "$XBPS_TARGET_MACHINE" in
*-musl)
makedepends+=" libglob-devel"
export LIBS="${XBPS_CROSS_BASE}/usr/lib/libglob.a"
;;
esac
post_patch() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
vsed \
-e '/include/s,glob.h,libglob/glob.h,g' \
-e '/GLOB_TILDE/s/glob(/g_glob(/g' \
-e 's/globfree(/g_globfree(/g' \
-i src/process_runs.c src/print_cpu_temperature.c i3status.c
;;
esac
}
pre_configure() {
autoreconf -vfi
}