From 578809a1d9065162eca342611790500e24b5cc6f Mon Sep 17 00:00:00 2001 From: David Spencer Date: Tue, 12 Jan 2016 23:20:52 +0000 Subject: ham/svxlink-sounds-en_US-heather-16k: Support alt tarball name. Signed-off-by: David Spencer --- .../svxlink-sounds-en_US-heather-16k.SlackBuild | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'ham') 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 . \ -- cgit v1.2.3