aboutsummaryrefslogtreecommitdiff
path: root/lame/lame.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'lame/lame.SlackBuild')
-rwxr-xr-xlame/lame.SlackBuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/lame/lame.SlackBuild b/lame/lame.SlackBuild
index d183d6c9..f1221a12 100755
--- a/lame/lame.SlackBuild
+++ b/lame/lame.SlackBuild
@@ -17,8 +17,11 @@ fi
# o seu md5sum
SRC_ORIG="lame-3.97b3_.tar.gz"
MD5_ORIG="4fbdad5d4203e75125cf5b875b171ac0"
-VERSION_ORIG="3.97" # `echo $SRC_ORIG | sed 's/\(.*\)-\(.*\)\.\(.*\..*\)$/\2/'`
-EXTENSION=`echo $SRC_ORIG | sed 's/\(.*\)-\(.*\)\.\(.*\..*\)$/\3/'`
+PACKAGE_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)\.(.*\..*)$/\1/'`
+VERSION_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)\.(.*\..*)$/\2/'`
+ EXTENSION=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)\.(.*\..*)$/\3/'`
+# Correçar para VERSION beta...
+VERSION_ORIG=`echo ${VERSION_ORIG/b*}`
# ------- Códigos de erro para o createpkg --------------
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
@@ -27,7 +30,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/\(.*\)-\(.*\)\.\(.*\..*\)$/\1/'`
+PACKAGE=$PACKAGE_ORIG
ARCH=${ARCH:=i468}
SRC_DIR=${SRC:=$CWD}
if [ "$VERSION" != "" ]; then