diff options
-rw-r--r-- | multimedia/freepats/README | 7 | ||||
-rw-r--r-- | multimedia/freepats/doinst.sh | 16 | ||||
-rw-r--r-- | multimedia/freepats/freepats.SlackBuild | 46 | ||||
-rw-r--r-- | multimedia/freepats/freepats.info | 8 | ||||
-rw-r--r-- | multimedia/freepats/slack-desc | 19 |
5 files changed, 96 insertions, 0 deletions
diff --git a/multimedia/freepats/README b/multimedia/freepats/README new file mode 100644 index 0000000000000..b13128741638b --- /dev/null +++ b/multimedia/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/multimedia/freepats/doinst.sh b/multimedia/freepats/doinst.sh new file mode 100644 index 0000000000000..50188f32f186b --- /dev/null +++ b/multimedia/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/multimedia/freepats/freepats.SlackBuild b/multimedia/freepats/freepats.SlackBuild new file mode 100644 index 0000000000000..b774634b566c9 --- /dev/null +++ b/multimedia/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/multimedia/freepats/freepats.info b/multimedia/freepats/freepats.info new file mode 100644 index 0000000000000..ecd8086053671 --- /dev/null +++ b/multimedia/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/multimedia/freepats/slack-desc b/multimedia/freepats/slack-desc new file mode 100644 index 0000000000000..9f2db6fbfdf39 --- /dev/null +++ b/multimedia/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: |