core/fluidsynth/PKGBUILD
2018-05-23 23:54:20 +02:00

48 lines
1.5 KiB
Bash

# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/fluidsynth
pkgname=fluidsynth
# Caution: This package has a lib32 alternative, please update that as well
pkgver=1.1.11
pkgrel=1
pkgdesc="A real-time software synthesizer based on the SoundFont 2 specifications"
arch=('x86_64')
url="http://www.fluidsynth.org/"
depends=('glib2' 'jack' 'libpulse' 'portaudio')
makedepends=('cmake' 'ladspa' 'doxygen')
optdepends=('pulseaudio: PulseAudio sound support')
license=('LGPL')
backup=("etc/conf.d/$pkgname")
source=($pkgname-$pkgver.tar.gz::"https://github.com/${pkgname}/${pkgname}/archive/v$pkgver.tar.gz")
sha512sums=('ad7c634426b29e5a05d67addf32d43a9ccb11a1fe3cfc09ad617416b9df3dc99a48191377f5027232521380737dde2d9b59833516d1bffb90f410bab3bbe140c')
prepare() {
cd "${pkgname}-${pkgver}"
# out-of-tree build
mkdir build
}
build() {
cd "${pkgname}-${pkgver}/build"
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DFLUID_DAEMON_ENV_FILE=/etc/conf.d/fluidsynth \
-Denable-ladspa=ON \
-Denable-lash=ON \
-Denable-portaudio=ON \
-DLIB_SUFFIX=""
make
}
package() {
cd "${pkgname}-${pkgver}/build"
make DESTDIR="$pkgdir" install
# systemd user unit
install -vDm644 "${pkgname}.service" \
"$pkgdir/usr/lib/systemd/user/${pkgname}.service"
# system-wide configuration file
install -vDm644 "${pkgname}.conf" "${pkgdir}/etc/conf.d/${pkgname}"
# docs
install -t "${pkgdir}/usr/share/doc/${pkgname}" \
-vDm644 ../{AUTHORS,ChangeLog,NEWS,README.md,THANKS,TODO}
}