86 lines
2.2 KiB
Bash
86 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.4.3
|
|
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/"
|
|
_url="https://github.com/fluidsynth/fluidsynth"
|
|
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::$_url/archive/v$pkgver.tar.gz)
|
|
sha512sums=('847d2f4529ac1bad735b71b57067c50586df7e2526c6311925c209c0635ee1e1dca1bd77dc6006181fc19a616738c8de1242bfb209707c8dbea9d7e2acc61017')
|
|
b2sums=('d79a2a7a1486619c0a2f23019c30d44f2b260d95495f5be8073f60464ca0d95096a71f15fa9d2ee9469de74a972d103f79eb56950ff21c2483b27187f0e17999')
|
|
|
|
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,{CONTRIBUTING,README}.md,THANKS,TODO} -t "$pkgdir/usr/share/doc/$pkgname/"
|
|
}
|