ham/svxlink-sounds-en_US-heather-16k: Support alt tarball name.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2016-01-12 23:20:52 +00:00 committed by Robby Workman
parent a4f3217109
commit 578809a1d9

View file

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