spk rev 76
spk-mirror: use ARCH to gen packges list
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 22 10:34:18 2012 +0200 (2012-05-22) |
parents | 2caa9666fc1f |
children | e5b0051e5021 |
files | spk-mirror |
line diff
1.1 --- a/spk-mirror Sat May 19 22:32:33 2012 +0200 1.2 +++ b/spk-mirror Tue May 22 10:34:18 2012 +0200 1.3 @@ -73,16 +73,22 @@ 1.4 # Add a package to packages.* lists 1.5 addto_list() { 1.6 cd $pkgsdir 1.7 - echo "$PACKAGE-${VERSION}${EXTRAVERSION}" >> packages.list 1.8 + 1.9 + # We need ARCH set the get correct version. 1.10 + ARCH=$(fgrep ARCH= /etc/slitaz/cook.conf | cut -d "\"" -f 2) 1.11 + case "$ARCH" in 1.12 + arm|x86_64) arch="-${ARCH}" ;; 1.13 + esac 1.14 + 1.15 + echo "$PACKAGE-${VERSION}${EXTRAVERSION}${arch}" >> packages.list 1.16 $CHECKSUM $(basename $pkg) >> packages.$SUM 1.17 # 1.18 - # Add PACKED_SIZE UNPACKED_SIZE to know packages size 1.19 - # before installing ??? --> actually done via packages.txt 1.20 + # Add PACKED_SIZE UNPACKED_SIZE to know packages size before installing ??? 1.21 + # --> actually done via packages.txt. Use: ${VERSION}${EXTRAVERSION}${arch} ??? 1.22 # 1.23 - 1.24 echo "$PACKAGE | ${VERSION}$EXTRAVERSION | $SHORT_DESC | $CATEGORY | $WEB_SITE" \ 1.25 - >> packages.desc 1.26 - 1.27 + >> packages.desc 1.28 + 1.29 # packages.equiv is used by tazpkg install to check depends. 1.30 touch packages.equiv 1.31 for i in $PROVIDE; do