diff options
author | David Spencer <idlemoor@slackbuilds.org> | 2016-01-19 23:38:21 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-20 23:59:30 +0700 |
commit | 57e8f4946243ceddb339521e08e208464cfc6726 (patch) | |
tree | 8f374145f4f2f91d14a998cfeafbabba41d097ba /perl | |
parent | 8d48b4421183a399a80032e97072d0a32dc92f8e (diff) |
Multiple: Support alternate tarball name.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'perl')
-rw-r--r-- | perl/perl-Sidef/perl-Sidef.SlackBuild | 7 | ||||
-rw-r--r-- | perl/perl-mojo/perl-mojo.SlackBuild | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/perl/perl-Sidef/perl-Sidef.SlackBuild b/perl/perl-Sidef/perl-Sidef.SlackBuild index 66c6fcf89841e..23c62d65e9a85 100644 --- a/perl/perl-Sidef/perl-Sidef.SlackBuild +++ b/perl/perl-Sidef/perl-Sidef.SlackBuild @@ -61,10 +61,9 @@ SRCNAM="sidef" rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$VERSION.tar.gz -mv $SRCNAM-$VERSION $PRGNAM-$VERSION -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$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 \ diff --git a/perl/perl-mojo/perl-mojo.SlackBuild b/perl/perl-mojo/perl-mojo.SlackBuild index 5aa64bfcdfeb0..1796a034f2c4c 100644 --- a/perl/perl-mojo/perl-mojo.SlackBuild +++ b/perl/perl-mojo/perl-mojo.SlackBuild @@ -62,7 +62,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $SRCNAM-$VERSION -tar xvf $CWD/v$VERSION.tar.gz +tar xvf $CWD/v$VERSION.tar.gz || tar xvf $CWD/$SRCNAM-$VERSION.tar.gz cd $SRCNAM-$VERSION chown -R root:root . find -L . \ |