On my system the code doesn't build as presented, the following patch works for me (I also opened an issue on the GitHub)
From 3b1eeb3c7850f202c46c58d9d3399265c4f38bb1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= <hugo@lysator.liu.se>
Date: Mon, 13 Apr 2026 22:57:42 +0200
Subject: [PATCH] Fix compilation.
As presented, the code doesn't compile on (at least my) system. This
adds some basic compilation flags which works for me.
---
PKGBUILD | 12 ++++++++++--
fix-compilation.patch | 13 +++++++++++++
2 files changed, 23 insertions(+), 2 deletions(-)
create mode 100644 fix-compilation.patch
diff --git a/PKGBUILD b/PKGBUILD
index 5f3803c..36a6a2a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,8 +18,16 @@ depends=(glibc)
makedepends=(freetype2 glib2 pango python-docutils)
checkdepends=(adobe-source-han-sans-cn-fonts)
groups=(abc pro-audio)
-source=("$pkgname-$pkgver.tar.gz::https://github.com/lewdlime/$pkgname/archive/v$pkgver.tar.gz")
-sha256sums=('5f02ac6203c4226cfbc6206935dca715ed7c45328535ee23e776c9da0219c822')
+source=(
+ "$pkgname-$pkgver.tar.gz::https://github.com/lewdlime/$pkgname/archive/v$pkgver.tar.gz"
+ fix-compilation.patch)
+sha256sums=('5f02ac6203c4226cfbc6206935dca715ed7c45328535ee23e776c9da0219c822'
+ 'f5148e2e5533c73dab2de881b9ef3aa868adeb8d17257d5102727b5521f70370')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ patch --input="${srcdir}/fix-compilation.patch"
+}
build() {
cd $pkgname-$pkgver
diff --git a/fix-compilation.patch b/fix-compilation.patch
new file mode 100644
index 0000000..c5436de
--- /dev/null
+++ b/fix-compilation.patch
@@ -0,0 +1,13 @@
+diff --git a/configure.orig b/configure
+index cc1f39a..0e6bea6 100755
+--- a/configure.orig
++++ b/configure
+@@ -6,7 +6,7 @@ VDATE=2024-01-08
+
+ : "${CC:=gcc}"
+ : "${PKG_CONFIG:=pkg-config}"
+-CFLAGS="-g -O2 -Wall -pipe $CFLAGS"
++CFLAGS="-g -O2 -Wall -pipe -std=c99 -D_POSIX_C_SOURCE=200809L -include strings.h $CFLAGS"
+
+ srcdir=.
+ : "${prefix=/usr/local}"
--
2.53.0
Pinned Comments
osamc commented on 2023-10-15 18:42 (UTC)
This AUR package is a mirror and automatically updated from the proaudio binary repo project at https://github.com/osam-cologne/archlinux-proaudio
If possible, open a GitHub issue or PR instead of commenting here, thanks!