X-Git-Url: http://gitweb/?a=blobdiff_plain;f=pkgmk.in;h=997453deb50f39ae87bed92b53fe8bef3efe682d;hb=bf4255e16b64eb26eeda62b610d24c111a2fe574;hp=4379f653e2eca3875a7de06fb6b240625fbb7b37;hpb=56b9b9dab28a3779a6dc1ef97ec26df9cb634915;p=pkgutils-cross.git

diff --git a/pkgmk.in b/pkgmk.in
index 4379f65..997453d 100755
--- a/pkgmk.in
+++ b/pkgmk.in
@@ -3,7 +3,7 @@
 #  pkgutils
 # 
 #  Copyright (c) 2000-2005 Per Liden
-#  Copyright (c) 2006-2007 by CRUX team (http://crux.nu)
+#  Copyright (c) 2006-2013 by CRUX team (http://crux.nu)
 # 
 #  This program is free software; you can redistribute it and/or modify
 #  it under the terms of the GNU General Public License as published by
@@ -174,7 +174,7 @@ unpack_source() {
 	for FILE in ${source[@]}; do
 		LOCAL_FILENAME=`get_filename $FILE`
 		case $LOCAL_FILENAME in
-			*.tar.gz|*.tar.Z|*.tgz|*.tar.bz2|*.tbz2|*.tar.xz|*.txz|*.tar.lzma|*.zip|*.rpm)
+			*.tar|*.tar.gz|*.tar.Z|*.tgz|*.tar.bz2|*.tbz2|*.tar.xz|*.txz|*.tar.lzma|*.zip|*.rpm)
 				COMMAND="bsdtar -p -o -C $SRC -xf $LOCAL_FILENAME" ;;
 			*)
 				COMMAND="cp $LOCAL_FILENAME $SRC" ;;
@@ -611,6 +611,12 @@ parse_options() {
 }
 
 main() {
+	# multilib
+	PKGMK_ARCH=64
+	if [ -f ".32bit" ]; then
+		PKGMK_ARCH=32
+	fi
+
 	local FILE TARGET
 	
 	parse_options "$@"