aports/community/fluidsynth/APKBUILD
2023-04-12 03:37:44 +02:00

65 lines
1.6 KiB
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Contributor: Dominika Liberda <ja@sdomi.pl>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=fluidsynth
pkgver=2.3.2
pkgrel=1
arch="all"
url="https://www.fluidsynth.org/"
pkgdesc="A real-time software synthesizer based on the SoundFont 2 specifications"
license="LGPL-2.1-or-later"
depends="soundfont-timgm"
makedepends="
alsa-lib-dev
cmake
dbus-dev
doxygen
glib-dev
graphviz
jack-dev
ladspa-dev
libsndfile-dev
pipewire-dev
portaudio-dev
pulseaudio-dev
readline-dev
samurai
"
source="https://github.com/fluidsynth/fluidsynth/archive/v$pkgver/fluidsynth-v$pkgver.tar.gz
implicit.patch
"
subpackages="$pkgname-dev $pkgname-libs $pkgname-doc"
# tests are broken on s390x
case "$CARCH" in
s390x) options="!check"
esac
build() {
# need to set gnu_source globally to fix implicit decls
CFLAGS="$CFLAGS -D_GNU_SOURCE" \
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_INSTALL_DIR=lib \
-DFLUID_DAEMON_ENV_FILE=/etc/conf.d/fluidsynth \
-Denable-ladspa=ON \
-Denable-portaudio=ON
cmake --build build
}
check() {
# ctest can't currently be used https://github.com/FluidSynth/fluidsynth/issues/881
ninja -C build check
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
21798b5a80a7edd8ef02b983d9b230af45cc66b98b32d593228e12dbec15b12c6cf6c0f3692c12af66de1ba2049fa9d6ad2b68c7d1579347eec14d24870b0025 fluidsynth-v2.3.2.tar.gz
b5bc3ecf07981fbb9fcf8fb113f03cf1ee30ca90ef2b53e7c0149e87abd595785f7654bca6b819fb40a7e40ffaea704770b51b7e506b7e03e335535d7add1c19 implicit.patch
"