pkgsrc/audio/xmms-meta-timidity/files/timidity.sh
ben a7bb6bb8d1 Switch from eawpatches to freepats, which is more actively maintained and
does not require acceptance of the unrar license at build-time.
2006-08-29 05:34:15 +00:00

24 lines
373 B
Bash
Executable file

#!/bin/sh
case "$1" in
play)
if [ -f XXXPKG_SYSCONFDIRXXX/timidity/timidity.cfg ]
then
TIMIDITY_CFG=""
else
TIMIDITY_CFG="-L XXXPREFIXXXX/share/freepats -c timidity.cfg"
fi
XXXPREFIXXXX/bin/timidity $TIMIDITY_CFG -U -idq -Or -o - -s 44100 "$2"
exit 0
;;
isOurFile)
file - <"$2" | grep -q MIDI
if [ $? -eq 0 ]
then
exit 0
else
exit 1
fi
;;
esac
exit 1