diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-03-07 18:55:18 +1300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-03-08 09:46:12 +0700 |
commit | 0369fea9bc3b91450e24ed1557eba61ff5ad5633 (patch) | |
tree | 16f9dc43093a5a16ca8a73d86cf52ae43c496f60 /audio/non | |
parent | 9b38fe7548b8fca3d06a23e2f506baa519504456 (diff) |
audio/non: Fix tarball handling.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/non')
-rw-r--r-- | audio/non/non.SlackBuild | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/audio/non/non.SlackBuild b/audio/non/non.SlackBuild index aec94eacc1890..e57ad33811dce 100644 --- a/audio/non/non.SlackBuild +++ b/audio/non/non.SlackBuild @@ -61,12 +61,13 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -mkdir $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-daw-v"$VERSION".tar.gz \ - -C $PRGNAM-$VERSION --strip-components 1 - -cd $PRGNAM-$VERSION +rm -rf $PRGNAM +TARBALL=$CWD/$PRGNAM-daw-v"$VERSION".tar.gz +if [ ! -e $TARBALL ] ; then + TARBALL=$CWD/$PRGNAM-$PRGNAM-daw-v"$VERSION".tar.gz +fi +tar xvf $TARBALL +cd $PRGNAM rm nonlib/nonlib chown -R root:root . |