84 lines
2.0 KiB
Plaintext
84 lines
2.0 KiB
Plaintext
# Maintainer: David Runge <dvzrv@archlinux.org>
|
|
# Contributor: Ray Rashif <schiv@archlinux.org>
|
|
# Contributor: damir <damir@archlinux.org>
|
|
|
|
pkgname=fluidsynth
|
|
pkgver=2.3.3
|
|
pkgrel=1
|
|
pkgdesc="A real-time software synthesizer based on the SoundFont 2 specifications"
|
|
arch=(x86_64)
|
|
url="https://www.fluidsynth.org/"
|
|
license=(LGPL2.1)
|
|
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=('702b80ff9c8e2ba9fadd46a0377a295be78900c831ec4b6b75c2f5fee7e453b2e1f5511b076ccc044be7e6eb87086230c50c317dad3597a16d610e16032410fc')
|
|
b2sums=('718d64a75cad7f589008b023942425b9c8c2f72b82ad9d554723c44d7af14adf1455404187904d6474cda5ebeb1c8aeb4eba55a73b4cb92b16b905923627827f')
|
|
|
|
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/"
|
|
}
|