summaryrefslogtreecommitdiff
path: root/ham
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-01-12 23:20:52 +0000
committerRobby Workman <rworkman@slackbuilds.org>2016-01-12 21:57:56 -0600
commit578809a1d9065162eca342611790500e24b5cc6f (patch)
tree5e8f12dc68d7fdfeec0f651246c80d7eea94e7f9 /ham
parenta4f3217109831d7071f275ea93595c76336ec735 (diff)
downloadslackbuilds-578809a1d9065162eca342611790500e24b5cc6f.tar.gz
ham/svxlink-sounds-en_US-heather-16k: Support alt tarball name.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'ham')
-rw-r--r--ham/svxlink-sounds-en_US-heather-16k/svxlink-sounds-en_US-heather-16k.SlackBuild12
1 files changed, 5 insertions, 7 deletions
diff --git a/ham/svxlink-sounds-en_US-heather-16k/svxlink-sounds-en_US-heather-16k.SlackBuild b/ham/svxlink-sounds-en_US-heather-16k/svxlink-sounds-en_US-heather-16k.SlackBuild
index 7b20ff5dd2..c60cc3d72a 100644
--- a/ham/svxlink-sounds-en_US-heather-16k/svxlink-sounds-en_US-heather-16k.SlackBuild
+++ b/ham/svxlink-sounds-en_US-heather-16k/svxlink-sounds-en_US-heather-16k.SlackBuild
@@ -23,6 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=svxlink-sounds-en_US-heather-16k
+SRCNAM=svxlink-sounds-en_US-heather
VERSION=${VERSION:-14.08}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -38,14 +39,11 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-mkdir -p $PKG/usr/share/svxlink/sounds
-cd $PKG/usr/share/svxlink/sounds
-tar xzvf $CWD/$VERSION.tar.gz
-# source unpacks to nonstandard directory name, moving..
-mkdir -p $PKG/usr/share/svxlink/sounds/en_US-heather-16k
-mv $PKG/usr/share/svxlink/sounds/svxlink-sounds-en_US-heather-$VERSION/* $PKG/usr/share/svxlink/sounds/en_US-heather-16k/
-rm -rf $PKG/usr/share/svxlink/sounds/svxlink-sounds-en_US-heather-$VERSION
+mkdir -p $PKG/usr/share/svxlink/sounds/en_US-heather-16k
+cd $PKG/usr/share/svxlink/sounds/en_US-heather-16k
+tar xvf $CWD/$VERSION.tar.gz --strip-components 1 || \
+ tar xvf $CWD/$SRCNAM-$VERSION.tar.gz --strip-components 1
chown -R root:root .
find -L . \