diff options
Diffstat (limited to 'qemu/qemu.SlackBuild')
-rwxr-xr-x | qemu/qemu.SlackBuild | 7 |
1 files changed, 4 insertions, 3 deletions
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} |