From 870527386e33c72826da94aee783bb212b06c53a Mon Sep 17 00:00:00 2001 From: root Date: Tue, 11 Sep 2012 00:03:28 +0000 Subject: Tue Sep 11 00:03:27 UTC 2012 --- testing/fluidsynth/PKGBUILD | 51 +++++++++++++++++++++++++++++++++++ testing/fluidsynth/fluidsynth.conf | 2 ++ testing/fluidsynth/fluidsynth.install | 19 +++++++++++++ testing/fluidsynth/fluidsynth.rc | 40 +++++++++++++++++++++++++++ testing/fluidsynth/fluidsynth.systemd | 9 +++++++ testing/util-linux/PKGBUILD | 4 +-- testing/util-linux/util-linux.install | 4 +-- 7 files changed, 125 insertions(+), 4 deletions(-) create mode 100644 testing/fluidsynth/PKGBUILD create mode 100644 testing/fluidsynth/fluidsynth.conf create mode 100644 testing/fluidsynth/fluidsynth.install create mode 100644 testing/fluidsynth/fluidsynth.rc create mode 100644 testing/fluidsynth/fluidsynth.systemd (limited to 'testing') diff --git a/testing/fluidsynth/PKGBUILD b/testing/fluidsynth/PKGBUILD new file mode 100644 index 000000000..30569612a --- /dev/null +++ b/testing/fluidsynth/PKGBUILD @@ -0,0 +1,51 @@ +# $Id: PKGBUILD 166535 2012-09-09 20:43:05Z schiv $ +# Maintainer: Ray Rashif +# Contributor: damir + +pkgname=fluidsynth +pkgver=1.1.6 +pkgrel=1 +pkgdesc="A real-time software synthesizer based on the SoundFont 2 specifications" +arch=('i686' 'x86_64') +url="http://www.fluidsynth.org/" +depends=('glib2' 'jack' 'dbus-core' 'libpulse') +makedepends=('cmake' 'ladspa' 'doxygen') +optdepends=('pulseaudio: PulseAudio sound support') +license=('LGPL') +backup=('etc/conf.d/fluidsynth') +install=$pkgname.install +source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" + 'fluidsynth.conf' + 'fluidsynth.rc' + 'fluidsynth.systemd') +md5sums=('ae5aca6de824b4173667cbd3a310b263' + '7d0ab0d75d4e87652f4cb7ffeac8a82b' + 'b296dbfb524c2164f552f68bd9abe2ec' + 'e0406748a154409907df62292be32e8a') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + cmake . -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -Denable-ladspa=ON \ + -DLIB_SUFFIX="" + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir/" install + + install -Dm644 "$srcdir/fluidsynth.conf" \ + "$pkgdir/etc/conf.d/fluidsynth" + + install -Dm755 "$srcdir/fluidsynth.rc" \ + "$pkgdir/etc/rc.d/fluidsynth" + + install -Dm644 "$srcdir/fluidsynth.systemd" \ + "$pkgdir/usr/lib/systemd/system/fluidsynth.service" +} + +# vim:set ts=2 sw=2 et: diff --git a/testing/fluidsynth/fluidsynth.conf b/testing/fluidsynth/fluidsynth.conf new file mode 100644 index 000000000..b8465fa2e --- /dev/null +++ b/testing/fluidsynth/fluidsynth.conf @@ -0,0 +1,2 @@ +FSYNTH_OPTS="-a alsa -m alsa_seq -r 48000" +FSYNTH_SOUNDFONT="" # path to your soundfont diff --git a/testing/fluidsynth/fluidsynth.install b/testing/fluidsynth/fluidsynth.install new file mode 100644 index 000000000..86e05f892 --- /dev/null +++ b/testing/fluidsynth/fluidsynth.install @@ -0,0 +1,19 @@ +post_install() { + echo + echo " > To use FluidSynth as a daemon edit /etc/conf.d/fluidsynth" + echo + echo " > Systemd users need to copy the service file from:" + echo " /usr/lib/systemd/system/fluidsynth.service" + echo " > to:" + echo " /etc/systemd/system/multi-user.target.wants/" + echo " > and then edit accordingly." + echo + echo " > PulseAudio output when running as a daemon" + echo " > is known to be problematic. See:" + echo " https://bbs.archlinux.org/viewtopic.php?id=135092" + echo +} + +post_upgrade() { + post_install +} diff --git a/testing/fluidsynth/fluidsynth.rc b/testing/fluidsynth/fluidsynth.rc new file mode 100644 index 000000000..ca1e8fa6e --- /dev/null +++ b/testing/fluidsynth/fluidsynth.rc @@ -0,0 +1,40 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +[ -f /etc/conf.d/fluidsynth ] && . /etc/conf.d/fluidsynth + +PID=`pidof -o %PPID /usr/bin/fluidsynth` +case "$1" in + start) + stat_busy "Starting Fluidsynth soundfont synthesizer" + [ -z "$PID" ] && /usr/bin/fluidsynth -is $FSYNTH_OPTS $FSYNTH_SOUNDFONT > /dev/null 2>&1 & + if [ $? -gt 0 ]; then + stat_fail + else + echo $PID > /var/run/fluidsynth.pid + add_daemon fluidsynth + stat_done + fi + ;; + stop) + stat_busy "Stopping Fluidsynth soundfont synthesizer" + [ ! -z "$PID" ] && kill $PID &> /dev/null 2>&1 + if [ $? -gt 0 ]; then + stat_fail + else + rm /var/run/fluidsynth.pid + rm_daemon fluidsynth + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/testing/fluidsynth/fluidsynth.systemd b/testing/fluidsynth/fluidsynth.systemd new file mode 100644 index 000000000..06784fe05 --- /dev/null +++ b/testing/fluidsynth/fluidsynth.systemd @@ -0,0 +1,9 @@ +[Unit] +Description=FluidSynth Daemon +After=sound.target + +[Service] +ExecStart=/usr/bin/fluidsynth -is -a alsa -m alsa_seq -r 48000 # append soundfont path here + +[Install] +WantedBy=multi-user.target diff --git a/testing/util-linux/PKGBUILD b/testing/util-linux/PKGBUILD index be2852273..a35d951e4 100644 --- a/testing/util-linux/PKGBUILD +++ b/testing/util-linux/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 166506 2012-09-08 13:33:53Z dreisner $ +# $Id: PKGBUILD 166533 2012-09-09 18:34:10Z dreisner $ # Maintainer: Tom Gundersen # Contributor: judd pkgname=util-linux pkgver=2.22 -pkgrel=4 +pkgrel=5 pkgdesc="Miscellaneous system utilities for Linux" url="http://www.kernel.org/pub/linux/utils/util-linux/" arch=('i686' 'x86_64') diff --git a/testing/util-linux/util-linux.install b/testing/util-linux/util-linux.install index d1338be46..35f80e2a2 100644 --- a/testing/util-linux/util-linux.install +++ b/testing/util-linux/util-linux.install @@ -10,8 +10,8 @@ post_install() { # we don't want use systemd-tmpfiles here because # the package dependency would create a circular dep. - if [ ! -d run/uuidd ]; then - mkdir run/uuidd + if [ ! -d run/uuidd ]; then + install -o uuidd -g uuidd -dm755 run/uuidd fi } -- cgit v1.2.3-54-g00ecf