aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbroffice/broffice.SlackBuild7
-rwxr-xr-xdigikam/digikam.SlackBuild4
-rwxr-xr-xdvdauthor/dvdauthor.SlackBuild7
-rwxr-xr-xexiv2/exiv2.SlackBuild6
-rwxr-xr-xgrace/grace.SlackBuild6
-rwxr-xr-ximlib2/imlib2.SlackBuild6
-rwxr-xr-xk9cp/k9copy/k9copy.SlackBuild8
-rwxr-xr-xk9cp/vamps/vamps.SlackBuild7
-rwxr-xr-xkile/kile.SlackBuild7
-rwxr-xr-xkqemu/kqemu.SlackBuild9
-rwxr-xr-xlame/lame.SlackBuild9
-rwxr-xr-xlibdvdcss/libdvdcss.SlackBuild7
-rwxr-xr-xlibdvdplay/libdvdplay.SlackBuild7
-rwxr-xr-xlibdvdread/libdvdread.SlackBuild7
-rwxr-xr-xlibkexif/libkexif.SlackBuild6
-rwxr-xr-xlibkipi/libkipi.SlackBuild6
-rwxr-xr-xqemu/qemu.SlackBuild7
-rwxr-xr-xscilab/scilab.SlackBuild7
-rwxr-xr-xskype/skype.SlackBuild7
19 files changed, 73 insertions, 57 deletions
diff --git a/broffice/broffice.SlackBuild b/broffice/broffice.SlackBuild
index dcdf245a..1b36375b 100755
--- a/broffice/broffice.SlackBuild
+++ b/broffice/broffice.SlackBuild
@@ -18,8 +18,9 @@ fi
# o seu md5sum
SRC_ORIG="broffice.org.2.0.4.rpm.tar.bz2"
MD5_ORIG="3b78ddd41c7f8da098ec36f78642613f"
-VERSION_ORIG=`echo $SRC_ORIG | sed 's/.*\.org\.\([0-9]\.[0-9]\.[0-9]\)\.rpm.*$/\1/'`
-EXTENSION=`echo $SRC_ORIG | sed 's/.*\.rpm\.\(.*\..*\)$/\1/'`
+PACKAGE_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)\.org\.(.*)\.rpm\.(.*)$/\1/'`
+VERSION_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)\.org\.(.*)\.rpm\.(.*)$/\2/'`
+ EXTENSION=`echo $SRC_ORIG | sed -r 's/(.*)\.org\.(.*)\.rpm\.(.*)$/\3/'`
# ------- Códigos de erro para o createpkg --------------
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
@@ -28,7 +29,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/\(.*\)\.org\..*$/\1/'`
+PACKAGE=$PACKAGE_ORIG
ARCH="i686"
SRC_DIR=${SRC:=$CWD}
VERSION=${VERSION:=$VERSION_ORIG}
diff --git a/digikam/digikam.SlackBuild b/digikam/digikam.SlackBuild
index b48654a7..59144038 100755
--- a/digikam/digikam.SlackBuild
+++ b/digikam/digikam.SlackBuild
@@ -20,8 +20,8 @@ SRC_ORIG="digikam-0.9.0-beta3.tar.bz2"
MD5_ORIG="4b6ecbe86ba258818b56257dbc851560"
PACKAGE_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-(.*)\.(.*\..*)$/\1/'`
VERSION_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-(.*)\.(.*\..*)$/\2/'`
-REVISION=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-(.*)\.(.*\..*)$/\3/'`
-EXTENSION=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-(.*)\.(.*\..*)$/\4/'`
+ REVISION=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-(.*)\.(.*\..*)$/\3/'`
+ EXTENSION=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-(.*)\.(.*\..*)$/\4/'`
# ------- Códigos de erro para o createpkg --------------
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
diff --git a/dvdauthor/dvdauthor.SlackBuild b/dvdauthor/dvdauthor.SlackBuild
index e9376de9..221bfe55 100755
--- a/dvdauthor/dvdauthor.SlackBuild
+++ b/dvdauthor/dvdauthor.SlackBuild
@@ -18,8 +18,9 @@ fi
# o seu md5sum
SRC_ORIG="dvdauthor-0.6.11.tar.gz"
MD5_ORIG="d2c45879e4cfb95d410bf603af891e07"
-VERSION_ORIG=`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/'`
# ------- Códigos de erro para o createpkg --------------
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
@@ -28,7 +29,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}
VERSION=${VERSION:=$VERSION_ORIG}
diff --git a/exiv2/exiv2.SlackBuild b/exiv2/exiv2.SlackBuild
index 57e74f63..d6f3ff16 100755
--- a/exiv2/exiv2.SlackBuild
+++ b/exiv2/exiv2.SlackBuild
@@ -18,9 +18,9 @@ fi
# o seu md5sum
SRC_ORIG="exiv2-0.11.tar.gz"
MD5_ORIG="269ce822946c56549d086f0c08dffc79"
-PACKAGE_ORIG=`echo $SRC_ORIG | sed 's/\(.*\)-\(.*\)\.\(.*\..*\)$/\1/'`
-VERSION_ORIG=`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/'`
# ------- Códigos de erro para o createpkg --------------
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
diff --git a/grace/grace.SlackBuild b/grace/grace.SlackBuild
index 582ed90e..2431aa6e 100755
--- a/grace/grace.SlackBuild
+++ b/grace/grace.SlackBuild
@@ -17,9 +17,9 @@ fi
# o seu md5sum
SRC_ORIG="grace-5.1.20.tar.gz"
MD5_ORIG="37bdb28b9e30b8e5061ed3f8e0ab9168"
-PACKAGE_ORIG=`echo $SRC_ORIG | sed 's/\(.*\)-\(.*\)\.\(.*\..*\)$/\1/'`
-VERSION_ORIG=`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/'`
# ------- Códigos de erro para o createpkg --------------
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
diff --git a/imlib2/imlib2.SlackBuild b/imlib2/imlib2.SlackBuild
index 59ff6af5..0cdbd472 100755
--- a/imlib2/imlib2.SlackBuild
+++ b/imlib2/imlib2.SlackBuild
@@ -18,9 +18,9 @@ fi
# o seu md5sum
SRC_ORIG="imlib2-1.0.6.tar.gz"
MD5_ORIG="8cbbb8b6e8126b0840a19e7e3b8fef8a"
-PACKAGE_ORIG=`echo $SRC_ORIG | sed 's/\(.*\)-\(.*\)\.\(.*\..*\)$/\1/'`
-VERSION_ORIG=`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/'`
# ------- Códigos de erro para o createpkg --------------
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
diff --git a/k9cp/k9copy/k9copy.SlackBuild b/k9cp/k9copy/k9copy.SlackBuild
index a804695f..898d9725 100755
--- a/k9cp/k9copy/k9copy.SlackBuild
+++ b/k9cp/k9copy/k9copy.SlackBuild
@@ -18,10 +18,10 @@ fi
# o seu md5sum
SRC_ORIG="k9copy-1.0.4-2.tar.gz"
MD5_ORIG="5b53658a12192c7832059b56daf23385"
-PACKAGE_ORIG=`echo $SRC_ORIG | sed 's/\(.*\)-\(.*\)-\(.\)\.\(.*\..*\)$/\1/'`
-VERSION_ORIG=`echo $SRC_ORIG | sed 's/\(.*\)-\(.*\)-\(.\)\.\(.*\..*\)$/\2/'`
-REVISION=`echo $SRC_ORIG | sed 's/\(.*\)-\(.*\)-\(.\)\.\(.*\..*\)$/\3/'`
-EXTENSION=`echo $SRC_ORIG | sed 's/\(.*\)-\(.*\)-\(.\)\.\(.*\..*\)$/\4/'`
+PACKAGE_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-(.*)\.(.*\..*)$/\1/'`
+VERSION_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-(.*)\.(.*\..*)$/\2/'`
+ REVISION=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-(.*)\.(.*\..*)$/\3/'`
+ EXTENSION=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-(.*)\.(.*\..*)$/\4/'`
# ------- Códigos de erro para o createpkg --------------
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
diff --git a/k9cp/vamps/vamps.SlackBuild b/k9cp/vamps/vamps.SlackBuild
index d1a3502d..ec362332 100755
--- a/k9cp/vamps/vamps.SlackBuild
+++ b/k9cp/vamps/vamps.SlackBuild
@@ -18,8 +18,9 @@ fi
# o seu md5sum
SRC_ORIG="vamps-0.99.2.tar.gz"
MD5_ORIG="7d438185a2ae95ebb245472d9fa47d06"
-VERSION_ORIG=`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/'`
# ------- Códigos de erro para o createpkg --------------
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
@@ -28,7 +29,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}
VERSION=${VERSION:=$VERSION_ORIG}
diff --git a/kile/kile.SlackBuild b/kile/kile.SlackBuild
index 6bc2c481..79e1199d 100755
--- a/kile/kile.SlackBuild
+++ b/kile/kile.SlackBuild
@@ -18,8 +18,9 @@ fi
# o seu md5sum
SRC_ORIG="kile-1.9.2.tar.bz2"
MD5_ORIG="2f4fa752595c9011fd9292d7ff99d124"
-VERSION_ORIG=`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/'`
# ------- Códigos de erro para o createpkg --------------
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
@@ -28,7 +29,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}
VERSION=${VERSION:=$VERSION_ORIG}
diff --git a/kqemu/kqemu.SlackBuild b/kqemu/kqemu.SlackBuild
index 12e68027..8db6ea57 100755
--- a/kqemu/kqemu.SlackBuild
+++ b/kqemu/kqemu.SlackBuild
@@ -17,8 +17,11 @@ fi
# o seu md5sum
SRC_ORIG="kqemu-1.3.0pre9.tar.gz"
MD5_ORIG="27888c3220844ad360a6a23345fa1bcb"
-VERSION_ORIG="1.3.0" #`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 pré...
+VERSION_ORIG=`echo ${VERSION_ORIG/pre*}`
# ------- 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
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
diff --git a/libdvdcss/libdvdcss.SlackBuild b/libdvdcss/libdvdcss.SlackBuild
index 33003114..ba0d5ca8 100755
--- a/libdvdcss/libdvdcss.SlackBuild
+++ b/libdvdcss/libdvdcss.SlackBuild
@@ -18,8 +18,9 @@ fi
# o seu md5sum
SRC_ORIG="libdvdcss-1.2.9.tar.bz2"
MD5_ORIG="553383d898826c285afb2ee453b07868"
-VERSION_ORIG=`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/'`
# ------- Códigos de erro para o createpkg --------------
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
@@ -28,7 +29,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:=i486}
SRC_DIR=${SRC:=$CWD}
VERSION=${VERSION:=$VERSION_ORIG}
diff --git a/libdvdplay/libdvdplay.SlackBuild b/libdvdplay/libdvdplay.SlackBuild
index 96c27c18..48351b33 100755
--- a/libdvdplay/libdvdplay.SlackBuild
+++ b/libdvdplay/libdvdplay.SlackBuild
@@ -18,8 +18,9 @@ fi
# o seu md5sum
SRC_ORIG="libdvdplay-1.0.1.tar.bz2"
MD5_ORIG="602bca4ef78d79aa87e5e8920d958a78"
-VERSION_ORIG=`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/'`
# ------- Códigos de erro para o createpkg --------------
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
@@ -28,7 +29,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}
VERSION=${VERSION:=$VERSION_ORIG}
diff --git a/libdvdread/libdvdread.SlackBuild b/libdvdread/libdvdread.SlackBuild
index 23703d68..3f961f92 100755
--- a/libdvdread/libdvdread.SlackBuild
+++ b/libdvdread/libdvdread.SlackBuild
@@ -18,8 +18,9 @@ fi
# o seu md5sum
SRC_ORIG="libdvdread-0.9.7.tar.gz"
MD5_ORIG="078788c9241ae16763529e1235502337"
-VERSION_ORIG=`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/'`
# ------- Códigos de erro para o createpkg --------------
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
@@ -28,7 +29,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}
VERSION=${VERSION:=$VERSION_ORIG}
diff --git a/libkexif/libkexif.SlackBuild b/libkexif/libkexif.SlackBuild
index 23057889..ec58206d 100755
--- a/libkexif/libkexif.SlackBuild
+++ b/libkexif/libkexif.SlackBuild
@@ -18,9 +18,9 @@ fi
# o seu md5sum
SRC_ORIG="libkexif-0.2.2.tar.bz2"
MD5_ORIG="..."
-PACKAGE_ORIG=`echo $SRC_ORIG | sed 's/\(.*\)-\(.*\)\.\(.*\..*\)$/\1/'`
-VERSION_ORIG=`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/'`
# ------- Códigos de erro para o createpkg --------------
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
diff --git a/libkipi/libkipi.SlackBuild b/libkipi/libkipi.SlackBuild
index 7b7f6b9a..78fe1a19 100755
--- a/libkipi/libkipi.SlackBuild
+++ b/libkipi/libkipi.SlackBuild
@@ -18,9 +18,9 @@ fi
# o seu md5sum
SRC_ORIG="libkipi-0.1.4.tar.bz2"
MD5_ORIG="2d8b8da064b85b0e53a98b4a7510392e"
-PACKAGE_ORIG=`echo $SRC_ORIG | sed 's/\(.*\)-\(.*\)\.\(.*\..*\)$/\1/'`
-VERSION_ORIG=`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/'`
# ------- Códigos de erro para o createpkg --------------
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
diff --git a/qemu/qemu.SlackBuild b/qemu/qemu.SlackBuild
index 417bb79d..dd3d7004 100755
--- a/qemu/qemu.SlackBuild
+++ b/qemu/qemu.SlackBuild
@@ -18,8 +18,9 @@ fi
# o seu md5sum
SRC_ORIG="qemu-0.8.2.tar.gz"
MD5_ORIG="5b3a89eb2f256a8a6f3bb07f7b3f1b07"
-VERSION_ORIG=`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/'`
# ------- Códigos de erro para o createpkg --------------
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
@@ -28,7 +29,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}
VERSION=${VERSION:=$VERSION_ORIG}
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}
diff --git a/skype/skype.SlackBuild b/skype/skype.SlackBuild
index dcaa8f81..e5550d89 100755
--- a/skype/skype.SlackBuild
+++ b/skype/skype.SlackBuild
@@ -18,8 +18,9 @@ fi
# o seu md5sum
SRC_ORIG="skype_staticQT-1.3.0.53-generic.tar.bz2"
MD5_ORIG="9ca128f45c73cd76862260bc6b9f196c"
-VERSION_ORIG="1.3.0.53"
-EXTENSION=`echo $SRC_ORIG | sed 's/\(.*\)_.*-\(.*\)-generic\.\(.*\)$/\3/'`
+PACKAGE_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)_staticQT-(.*)-.*\.(.*\..*)$/\1/'`
+VERSION_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)_staticQT-(.*)-.*\.(.*\..*)$/\2/'`
+ EXTENSION=`echo $SRC_ORIG | sed -r 's/(.*)_staticQT-(.*)-.*\.(.*\..*)$/\3/'`
# ------- Códigos de erro para o createpkg --------------
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
@@ -28,7 +29,7 @@ ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39
ERROR_PATCH=40; ERROR_VCS=41
# --------- Inicializa variáveis de entrada -------------
-PACKAGE="skype"
+PACKAGE=$PACKAGE_ORIG
ARCH=${ARCH:=i468}
SRC_DIR=${SRC:=$CWD}
VERSION=${VERSION:=$VERSION_ORIG}