Date: Wednesday, June 13, 2018 @ 16:35:17 Author: arojas Revision: 342900
archrelease: copy trunk to community-x86_64 Added: fluidsynth/repos/community-x86_64/ fluidsynth/repos/community-x86_64/PKGBUILD (from rev 342899, fluidsynth/trunk/PKGBUILD) ----------+ PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) Copied: fluidsynth/repos/community-x86_64/PKGBUILD (from rev 342899, fluidsynth/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2018-06-13 16:35:17 UTC (rev 342900) @@ -0,0 +1,49 @@ +# $Id$ +# Maintainer: Ray Rashif <sc...@archlinux.org> +# Contributor: David Runge <d...@sleepmap.de> +# Contributor: damir <da...@archlinux.org> + +pkgname=fluidsynth +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' 'lash' '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} +} +