summaryrefslogtreecommitdiffstats
path: root/audio/eawpats
diff options
context:
space:
mode:
Diffstat (limited to 'audio/eawpats')
-rw-r--r--audio/eawpats/README17
-rw-r--r--audio/eawpats/doinst.sh4
-rw-r--r--audio/eawpats/eawpats.SlackBuild12
3 files changed, 19 insertions, 14 deletions
diff --git a/audio/eawpats/README b/audio/eawpats/README
index 6de2812428..0fecfa8091 100644
--- a/audio/eawpats/README
+++ b/audio/eawpats/README
@@ -1,13 +1,14 @@
-eawpats is a sound patches library for TiMidity++. This package contains
-a patchset for the TiMidity++ MIDI player. A patchset is required for
-MIDI files to be audible through TiMidity++. These patches also work
-with applications that use SDL_mixer for MIDI audio.
+eawpats is a sound patches library for TiMidity++. This package
+contains a patchset for the TiMidity++ MIDI player. A patchset is
+required for MIDI files to be audible through TiMidity++. These
+patches also work with applications that use SDL_mixer for MIDI audio.
Note that eawpats contains proprietary sound samples. According to the
ALSA Wiki:
-"Half of the patches in eawpats are derived from original Gravis patches,
-and therefore may have some intellectual property issues."
+"Half of the patches in eawpats are derived from original Gravis
+patches, and therefore may have some intellectual property issues."
-If this is a concern to you, use freepats instead (however, eawpats does
-sound nicer). For more information, see /usr/doc/eawpats-12/copyrigh.txt
+If this is a concern to you, use freepats instead (however,
+eawpats does sound nicer). For more information, see
+/usr/doc/eawpats-12/copyrigh.txt
diff --git a/audio/eawpats/doinst.sh b/audio/eawpats/doinst.sh
index 110f77527d..0a9be04c39 100644
--- a/audio/eawpats/doinst.sh
+++ b/audio/eawpats/doinst.sh
@@ -13,3 +13,7 @@ config() {
config etc/timidity/eawpats.cfg.new
+# if there's no existing timidity.cfg, eawpats takes over.
+if [ ! -r etc/timidity/timidity.cfg ]; then
+ ( cd etc/timidity ; ln -sf eawpats.cfg timidity.cfg )
+fi
diff --git a/audio/eawpats/eawpats.SlackBuild b/audio/eawpats/eawpats.SlackBuild
index d109f72ed9..b2529dfde6 100644
--- a/audio/eawpats/eawpats.SlackBuild
+++ b/audio/eawpats/eawpats.SlackBuild
@@ -11,6 +11,9 @@
# This is the original author's site, but it's more polite to download
# from the gentoo mirror (see .info file)
+# 20191201 bkw: symlink eawpats.cfg to timidity.cfg in doinst.sh,
+# if there's no timidity.cfg already. This makes things Just Work(tm).
+
# 20140511 bkw: one patch was missing due to tar being silly.
# When extracting (with tar, which is really tar-1.26 on slack 14.1):
# tar: eawpats/charang.pat: implausibly old time stamp 1969-12-31 18:59:59
@@ -24,7 +27,7 @@ PRGNAM=eawpats
VERSION=${VERSION:-12}
SRCVER=${VERSION}_full
ARCH=noarch
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -41,11 +44,8 @@ rm -rf $PRGNAM
tar xvf $CWD/$PRGNAM$SRCVER.tar.gz
cd $PRGNAM
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
# see above
touch charang.pat