diff options
Diffstat (limited to 'testing/timidity++')
-rw-r--r-- | testing/timidity++/PKGBUILD | 38 | ||||
-rw-r--r-- | testing/timidity++/timidity++.sh | 38 | ||||
-rw-r--r-- | testing/timidity++/timidity.cfg | 29 | ||||
-rw-r--r-- | testing/timidity++/timidity.service | 9 |
4 files changed, 114 insertions, 0 deletions
diff --git a/testing/timidity++/PKGBUILD b/testing/timidity++/PKGBUILD new file mode 100644 index 000000000..cec8e8a35 --- /dev/null +++ b/testing/timidity++/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 165420 2012-08-18 23:03:32Z eric $ +# Maintainer: Eric BĂ©langer <eric@archlinux.org> + +pkgname=timidity++ +pkgver=2.14.0 +pkgrel=3 +pkgdesc="A MIDI to WAVE converter and player" +arch=('i686' 'x86_64') +url="http://timidity.sourceforge.net" +license=('GPL') +depends=('libao' 'libvorbis' 'jack' 'ncurses') +makedepends=('xaw3d>=1.6' 'gtk2' 'tk' 'libxaw') +optdepends=('gtk2: for using the GTK+ interface' 'tk: for using the Tk interface' \ + 'xaw3d: for using the Xaw interface') +backup=('etc/timidity++/timidity.cfg') +source=(http://downloads.sourceforge.net/timidity/TiMidity++-${pkgver}.tar.xz \ + timidity.cfg timidity++.sh timidity.service) +sha1sums=('15ec27f1ea3e718a8d61603521fc16df5c0dd24b' + '660b3afbb720d26e8f008034cee66dd8da082d6e' + '9f3e732a7ca1e97119a76df62ecf154df04d4f77' + 'f0351b9eb8928d3d82c380107654a7dbe7cd2d54') + +build() { + cd "${srcdir}/TiMidity++-${pkgver}" + ./configure --prefix=/usr --mandir=/usr/share/man --with-default-path=/etc/timidity++/ \ + --enable-server --enable-alsaseq --enable-spectrogram --enable-network --enable-xft \ + --enable-audio=alsa,oss,ao,vorbis,flac,jack \ + --enable-dynamic=ncurses,tcltk,vt100,xaw,gtk + make +} + +package() { + cd "${srcdir}/TiMidity++-${pkgver}" + make DESTDIR="${pkgdir}" install + install -D -m644 ../timidity.cfg "${pkgdir}/etc/timidity++/timidity.cfg" + install -D -m755 ../timidity++.sh "${pkgdir}/etc/rc.d/timidity++" + install -D -m644 ../timidity.service "${pkgdir}/usr/lib/systemd/system/timidity.service" +} diff --git a/testing/timidity++/timidity++.sh b/testing/timidity++/timidity++.sh new file mode 100644 index 000000000..3fa13cea9 --- /dev/null +++ b/testing/timidity++/timidity++.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=`pidof -o %PPID /usr/bin/timidity` +case "$1" in + start) + stat_busy "Starting Timidity++ ALSA Daemon" + [ -z "$PID" ] && /usr/bin/timidity -iAD > /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + echo $PID > /var/run/timidity.pid + add_daemon timidity++ + stat_done + fi + ;; + stop) + stat_busy "Stopping Timidity++ ALSA Daemon" + [ ! -z "$PID" ] && kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm /var/run/timidity.pid + rm_daemon timidity++ + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/testing/timidity++/timidity.cfg b/testing/timidity++/timidity.cfg new file mode 100644 index 000000000..59bbfa935 --- /dev/null +++ b/testing/timidity++/timidity.cfg @@ -0,0 +1,29 @@ +# details on this file and other examples see here: +# http://www.onicos.com/staff/iz/timidity/dist/cfg/sndfont.cfg +# http://www.onicos.com/staff/iz/timidity/dist/cfg/ +#---------------------------------------------------------------- +# SoundFont extension configuration +# +# soundfont <filename> [order={0|1}] [remove] +# <filename> is the path of SoundFont file. +# order: 0(preload) or 1(load after GUS). +# remove: disable specified soundfont. +# +# font exclude <tonebank> [<preset> [<keynote>]] +# font order {0|1} <tonebank> [<preset> [<keynote>]] +# <tonebank>: 0-127 +# +# font exclude 128 [<drumset> [<key>]] +# font order {0|1} 128 [<drumset> [<key>]] +#---------------------------------------------------------------- + +# change the next line to point to a soundfont you have +# soundfonts can be found e.g. here: http://www.hammersound.net/ +# soundfont /usr/share/soundfonts/DX7Piano.SF2 + +# you can do manipulations of the soundfont you load like this: +# e.g. removing drumset 99 +# font exclude 128 99 + +# load drum samples after GUS patches +# font order 1 128 diff --git a/testing/timidity++/timidity.service b/testing/timidity++/timidity.service new file mode 100644 index 000000000..4d6ceea6a --- /dev/null +++ b/testing/timidity++/timidity.service @@ -0,0 +1,9 @@ +[Unit] +Description=TiMidity++ Daemon +After=sound.target + +[Service] +ExecStart=/usr/bin/timidity -iA + +[Install] +WantedBy=multi-user.target |