85 lines
2.2 KiB
Bash
85 lines
2.2 KiB
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: David Runge <dvzrv@archlinux.org>
|
|
# Contributor: Ray Rashif <schiv@archlinux.org>
|
|
# Contributor: damir <damir@archlinux.org>
|
|
|
|
pkgname=fluidsynth
|
|
pkgver=2.3.6
|
|
pkgrel=1
|
|
pkgdesc="A real-time software synthesizer based on the SoundFont 2 specifications"
|
|
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
|
url="https://www.fluidsynth.org/"
|
|
license=(LGPL-2.1-or-later)
|
|
groups=(pro-audio)
|
|
depends=(
|
|
gcc-libs
|
|
glibc
|
|
sdl2
|
|
)
|
|
makedepends=(
|
|
alsa-lib
|
|
cmake
|
|
dbus
|
|
doxygen
|
|
glib2
|
|
jack
|
|
ladspa
|
|
libinstpatch
|
|
libpipewire
|
|
libpulse
|
|
libsndfile
|
|
portaudio
|
|
readline
|
|
systemd-libs
|
|
)
|
|
provides=(
|
|
libfluidsynth.so
|
|
soundfont-synthesizer
|
|
)
|
|
backup=(etc/conf.d/$pkgname)
|
|
source=($pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz)
|
|
sha512sums=('521e103e49c281ab7a44a2a275f614894062c1be6eb4df776b11e3756803c6b4b73d1e9596d364959c81b37dff4798d56798f9262c486e098f072ae1e7bef1c1')
|
|
b2sums=('74bb97e8f2026816762aeffb90c35049ae210c6827fa4a3f6a56f13c885f57b34a6b48790c86a6694100ab6d292f70b54a4516bc20317ead3d306511a33cb73c')
|
|
|
|
build() {
|
|
local cmake_options=(
|
|
-B build
|
|
-D CMAKE_BUILD_TYPE=None
|
|
-D CMAKE_INSTALL_PREFIX=/usr
|
|
-D FLUID_DAEMON_ENV_FILE=/etc/conf.d/fluidsynth
|
|
-D LIB_SUFFIX=""
|
|
-D enable-ladspa=ON
|
|
-D enable-portaudio=ON
|
|
-S $pkgname-$pkgver
|
|
-W no-dev
|
|
)
|
|
|
|
cmake "${cmake_options[@]}"
|
|
cmake --build build --verbose
|
|
}
|
|
|
|
check() {
|
|
make check -k -C build
|
|
}
|
|
|
|
package() {
|
|
depends+=(
|
|
alsa-lib libasound.so
|
|
dbus libdbus-1.so
|
|
glib2 libglib-2.0.so libgmodule-2.0.so libgobject-2.0.so
|
|
jack libjack.so
|
|
libinstpatch libinstpatch-1.0.so
|
|
libpipewire libpipewire-0.3.so
|
|
libpulse libpulse-simple.so
|
|
libsndfile libsndfile.so
|
|
portaudio libportaudio.so
|
|
readline libreadline.so
|
|
systemd-libs libsystemd.so
|
|
)
|
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
install -vDm 644 build/$pkgname.service -t "$pkgdir/usr/lib/systemd/user/"
|
|
install -vDm 644 build/$pkgname.conf "$pkgdir/etc/conf.d/$pkgname"
|
|
install -vDm 644 $pkgname-$pkgver/{AUTHORS,ChangeLog,{CONTRIBUTING,README}.md,THANKS,TODO} -t "$pkgdir/usr/share/doc/$pkgname/"
|
|
}
|