aboutsummaryrefslogtreecommitdiff
path: root/scilab
diff options
context:
space:
mode:
Diffstat (limited to 'scilab')
-rwxr-xr-xscilab/scilab.SlackBuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/scilab/scilab.SlackBuild b/scilab/scilab.SlackBuild
index a85c6267..6f52f318 100755
--- a/scilab/scilab.SlackBuild
+++ b/scilab/scilab.SlackBuild
@@ -17,8 +17,9 @@ fi
# o seu md5sum
SRC_ORIG="scilab-4.0-src.tar.gz"
MD5_ORIG="26e1c1480453bb1021bcea3ac412ad19"
-VERSION_ORIG=`echo $SRC_ORIG | sed 's/\(.*\)-\(.*\)-src\.\(.*\..*\)$/\2/'`
-EXTENSION=`echo $SRC_ORIG | sed 's/\(.*\)-\(.*\)-src\.\(.*\..*\)$/\3/'`
+PACKAGE_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-src\.(.*\..*)$/\1/'`
+VERSION_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-src\.(.*\..*)$/\2/'`
+ EXTENSION=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-src\.(.*\..*)$/\3/'`
# ------- Códigos de erro para o createpkg --------------
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
@@ -27,7 +28,7 @@ ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39
ERROR_PATCH=40; ERROR_VCS=41
# --------- Inicializa variáveis de entrada -------------
-PACKAGE=`echo $SRC_ORIG | sed 's/\(.*\)-\(.*\)-src\.\(.*\..*\)$/\1/'`
+PACKAGE=$PACKAGE_ORIG
ARCH=${ARCH:=i468}
SRC_DIR=${SRC:=$CWD}
VERSION=${VERSION:=$VERSION_ORIG}