multimedia/freepats: Added to 12.0 repository

This commit is contained in:
Kyle Guinn 2010-05-11 20:01:16 +02:00 committed by Robby Workman
parent f5cf58062f
commit 906ad4c4dc
5 changed files with 96 additions and 0 deletions

View file

@ -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.

View file

@ -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

View file

@ -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

View file

@ -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"

View file

@ -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: