diff --git a/srcpkgs/cava-gui/patches/fix-missing__int16_t.patch b/srcpkgs/cava-gui/patches/fix-missing__int16_t.patch new file mode 100644 index 00000000000..db130ece908 --- /dev/null +++ b/srcpkgs/cava-gui/patches/fix-missing__int16_t.patch @@ -0,0 +1,23 @@ +Source: maxice8 +Upstream: no +Reason: fixes compilation with musl libc, and avoid using an internal implementation + +--- input/fifo.c ++++ input/fifo.c +@@ -1,6 +1,7 @@ + #include + #include + #include ++#include + #include + #include "fifo.h" + +@@ -27,7 +28,7 @@ void* input_fifo(void* data) + int t = 0; + //int size = 1024; + int bytes = 0; +- __int16_t buf[BUFSIZE / 2]; ++ int16_t buf[BUFSIZE / 2]; + struct timespec req = { .tv_sec = 0, .tv_nsec = 10000000 }; + + diff --git a/srcpkgs/cava-gui/template b/srcpkgs/cava-gui/template index ab254098466..18f9d667fe8 100644 --- a/srcpkgs/cava-gui/template +++ b/srcpkgs/cava-gui/template @@ -1,9 +1,9 @@ # Template file for 'cava-gui' pkgname=cava-gui -version=0.6.1 -revision=2 +version=0.6.1.1 +revision=1 wrksrc="cava-${version}" -build_style=gnu-configure +build_style=cmake hostmakedepends="automake libtool" makedepends="SDL2-devel iniparser-devel ncurses-devel sndio-devel portaudio-devel" short_desc="Console-based Audio Visualizer for ALSA (GUI branch)" @@ -11,13 +11,9 @@ maintainer="nik123 " license="MIT" homepage="https://github.com/nikp123/cava" distfiles="https://github.com/nikp123/cava/archive/${version}.tar.gz" -checksum=e639c55521e18786d15ac348c5130ca41637c10b0ef0a7aa340da1c62b9387f9 +checksum=8b2c0325ae74b29cf5808c488b7ca4e0c74629d300dee6d57ba54a8bc0b06cb9 conflicts=cava -pre_configure() { - NOCONFIGURE=1 ./autogen.sh -} - post_install() { vlicense LICENSE vmkdir usr/share/examples