From 57e8f4946243ceddb339521e08e208464cfc6726 Mon Sep 17 00:00:00 2001 From: David Spencer Date: Tue, 19 Jan 2016 23:38:21 +0000 Subject: Multiple: Support alternate tarball name. Signed-off-by: David Spencer --- libraries/MyGUI/MyGUI.SlackBuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libraries/MyGUI') diff --git a/libraries/MyGUI/MyGUI.SlackBuild b/libraries/MyGUI/MyGUI.SlackBuild index d2d643f9ab574..91b4cbc5573f5 100644 --- a/libraries/MyGUI/MyGUI.SlackBuild +++ b/libraries/MyGUI/MyGUI.SlackBuild @@ -23,6 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=MyGUI +SRCNAM=mygui-MyGUI # Yes, really (github) VERSION=${VERSION:-3.2.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -61,9 +62,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM$VERSION.tar.gz -cd mygui-$PRGNAM$VERSION +rm -rf $SRCNAM$VERSION +tar xvf $CWD/$PRGNAM$VERSION.tar.gz || tar xvf $CWD/$SRCNAM$VERSION.tar.gz +cd $SRCNAM$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -- cgit v1.2.3