aboutsummaryrefslogtreecommitdiff
path: root/audio/freepats
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2010-05-11 20:30:46 +0200
committerHeinz Wiesinger <pprkut@slackbuilds.org>2010-05-11 20:30:46 +0200
commitd2ebc334c5311f60bc793183f394db46194fef51 (patch)
tree5a34eff8657b61c42fc51126e212ca3e7f335330 /audio/freepats
parent02789dc1aa869c8718fb3fa1d23d4f380fd0b60b (diff)
audio/freepats: Moved from multimedia
Diffstat (limited to 'audio/freepats')
-rw-r--r--audio/freepats/README7
-rw-r--r--audio/freepats/doinst.sh16
-rw-r--r--audio/freepats/freepats.SlackBuild46
-rw-r--r--audio/freepats/freepats.info8
-rw-r--r--audio/freepats/slack-desc19
5 files changed, 96 insertions, 0 deletions
diff --git a/audio/freepats/README b/audio/freepats/README
new file mode 100644
index 000000000000..b13128741638
--- /dev/null
+++ b/audio/freepats/README
@@ -0,0 +1,7 @@
+Freepats is a project to create a free and open set of instrument patches.
+
+To use these patches with TiMidity++, add the following line to
+/etc/timidity/timidity.cfg (minus the quotes):
+ 'source $basedir/freepats.cfg'
+Alternatively, use crude.cfg instead of freepats.cfg to use substitute
+patches that fill in missing entries in the tone bank.
diff --git a/audio/freepats/doinst.sh b/audio/freepats/doinst.sh
new file mode 100644
index 000000000000..50188f32f186
--- /dev/null
+++ b/audio/freepats/doinst.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/timidity/crude.cfg.new
+config etc/timidity/freepats.cfg.new
+
diff --git a/audio/freepats/freepats.SlackBuild b/audio/freepats/freepats.SlackBuild
new file mode 100644
index 000000000000..b774634b566c
--- /dev/null
+++ b/audio/freepats/freepats.SlackBuild
@@ -0,0 +1,46 @@
+#!/bin/sh
+
+# Slackware build script for freepats
+# Written by Kyle Guinn <elyk03@gmail.com>
+
+set -e
+
+PRGNAM=freepats
+VERSION=20060219
+ARCH=noarch
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+mkdir -p $PKG/usr/share/sounds/$PRGNAM $PKG/etc/timidity
+cp -a Drum_000 Tone_000 $PKG/usr/share/sounds/$PRGNAM
+cat crude.cfg > $PKG/etc/timidity/crude.cfg.new
+cat freepats.cfg > $PKG/etc/timidity/freepats.cfg.new
+
+# Modify the sample TiMidity++ configuration files so that
+# TiMidity++ will be able to find the patch files.
+sed -i "4idir /usr/share/sounds/$PRGNAM\n" $PKG/etc/timidity/freepats.cfg.new
+sed -i "10idir /usr/share/sounds/$PRGNAM\n" $PKG/etc/timidity/crude.cfg.new
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/audio/freepats/freepats.info b/audio/freepats/freepats.info
new file mode 100644
index 000000000000..ecd808605367
--- /dev/null
+++ b/audio/freepats/freepats.info
@@ -0,0 +1,8 @@
+PRGNAM="freepats"
+VERSION="20060219"
+HOMEPAGE="http://freepats.opensrc.org/"
+DOWNLOAD="http://freepats.opensrc.org/freepats-20060219.tar.bz2"
+MD5SUM="b947806304bc559a644a2c06deda8404"
+MAINTAINER="Kyle Guinn"
+EMAIL="elyk03@gmail.com"
+APPROVED="rworkman"
diff --git a/audio/freepats/slack-desc b/audio/freepats/slack-desc
new file mode 100644
index 000000000000..9f2db6fbfdf3
--- /dev/null
+++ b/audio/freepats/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+freepats: Freepats (midi nstrument patches)
+freepats:
+freepats: Freepats is a project to create a free and open set of
+freepats: instrument patches.
+freepats:
+freepats:
+freepats:
+freepats:
+freepats:
+freepats:
+freepats: