spk rev 89
spk-add: install local cross-compiled packages (they have -ARCH string)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 25 02:43:41 2012 +0200 (2012-05-25) |
parents | b84e0d36c9e0 |
children | 50cd05f3fa15 |
files | spk-add |
line diff
1.1 --- a/spk-add Fri May 25 02:41:36 2012 +0200 1.2 +++ b/spk-add Fri May 25 02:43:41 2012 +0200 1.3 @@ -98,6 +98,7 @@ 1.4 separator 1.5 gettext "Copying package..." 1.6 cp $package_file $tmpdir && status 1.7 + cd $tmpdir 1.8 1.9 # Add package checksum to $installed.$SUM 1.10 if [ "$verbose" ]; then 1.11 @@ -113,7 +114,12 @@ 1.12 # Extract Package 1.13 #debug "extract_package $package_file $tmpdir" 1.14 extract_package $package_file $tmpdir 1.15 - tmpdir="$tmpdir/$PACKAGE-$VERSION" 1.16 + 1.17 + # Handle cross compiled packages 1.18 + case "$SLITAZ_ARCH" in 1.19 + arm|x86_64) arch="-${SLITAZ_ARCH}" ;; 1.20 + esac 1.21 + tmpdir="$tmpdir/$PACKAGE-${VERSION}${arch}" 1.22 1.23 # Get files to remove if upgrading 1.24 local files_to_remove