wok-next diff slitaz-tools/receipt @ rev 13146
matchbox-panel-2: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 10 12:56:20 2012 +0200 (2012-07-10) |
parents | 9ba57c7ee2b2 |
children | 717938b0ed14 |
line diff
1.1 --- a/slitaz-tools/receipt Thu May 03 07:51:54 2012 +0200 1.2 +++ b/slitaz-tools/receipt Tue Jul 10 12:56:20 2012 +0200 1.3 @@ -5,12 +5,23 @@ 1.4 CATEGORY="system-tools" 1.5 SHORT_DESC="SliTaz tools provide installer and utils usable on termnial." 1.6 MAINTAINER="pankso@slitaz.org" 1.7 -DEPENDS="slitaz-boot-scripts dialog gettext-base slitaz-configs-base" 1.8 -BUILD_DEPENDS="gettext" 1.9 SUGGESTED="slitaz-tools-boxes" 1.10 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.11 WEB_SITE="http://www.slitaz.org/" 1.12 WGET_URL="http://mirror.slitaz.org/sources/tools/$TARBALL" 1.13 +HOST_ARCH="i486 arm" 1.14 + 1.15 +DEPENDS="slitaz-boot-scripts dialog gettext-base slitaz-configs-base" 1.16 +BUILD_DEPENDS="gettext" 1.17 + 1.18 +# Handle multiarch compilation. 1.19 +case "$ARCH" in 1.20 + arm) 1.21 + DEPENDS="slitaz-boot-scripts dialog gettext-base" 1.22 + BUILD_DEPENDS="" ;; 1.23 +esac 1.24 + 1.25 +# Saved config file by package manager 1.26 CONFIG_FILES=" 1.27 /etc/TZ 1.28 /etc/keymap.conf 1.29 @@ -30,33 +41,29 @@ 1.30 { 1.31 mkdir -p $fs 1.32 cp -a $install/* $fs 1.33 - 1.34 # Makefile bug in 5.0 1.35 cp -a $src/tinyutils/decode $fs/usr/bin 1.36 - 1.37 chmod 0644 $fs/usr/share/locale/*/*/*.mo 1.38 chown -R root.root $fs 1.39 } 1.40 1.41 # Pre install commands. 1.42 -pre_install() 1.43 -{ 1.44 - local root 1.45 - root=$1 1.46 +#pre_install() 1.47 +#{ 1.48 # Backup file to restore with post install 1.49 - echo "Creating backups of configs..." 1.50 - cp $root/etc/TZ $root/etc/TZ.bak 2>/dev/null 1.51 - cp $root/etc/keymap.conf $root/etc/keymap.conf.bak 2>/dev/null 1.52 - cp $root/etc/locale.conf $root/etc/locale.conf.bak 2>/dev/null 1.53 - cp $root/etc/firewall.conf $root/etc/firewall.conf.bak 2>/dev/null 1.54 -} 1.55 + #echo "Creating backups of configs..." 1.56 + #cp $root/etc/TZ $root/etc/TZ.bak 2>/dev/null 1.57 + #cp $root/etc/keymap.conf $root/etc/keymap.conf.bak 2>/dev/null 1.58 + #cp $root/etc/locale.conf $root/etc/locale.conf.bak 2>/dev/null 1.59 + #cp $root/etc/firewall.conf $root/etc/firewall.conf.bak 2>/dev/null 1.60 +#} 1.61 1.62 # Post install 1.63 -post_install() 1.64 -{ 1.65 - echo "Restoring configs backups..." 1.66 - mv -f $root/etc/TZ.bak $root/etc/TZ 2>/dev/null 1.67 - mv -f $root/etc/keymap.conf.bak $root/etc/keymap.conf 2>/dev/null 1.68 - mv -f $root/etc/locale.conf.bak $root/etc/locale.conf 2>/dev/null 1.69 - mv -f $root/etc/firewall.conf.bak $root/etc/firewall.conf 2>/dev/null 1.70 -} 1.71 +#post_install() 1.72 +#{ 1.73 + #echo "Restoring configs backups..." 1.74 + #mv -f $root/etc/TZ.bak $root/etc/TZ 2>/dev/null 1.75 + #mv -f $root/etc/keymap.conf.bak $root/etc/keymap.conf 2>/dev/null 1.76 + #mv -f $root/etc/locale.conf.bak $root/etc/locale.conf 2>/dev/null 1.77 + #mv -f $root/etc/firewall.conf.bak $root/etc/firewall.conf 2>/dev/null 1.78 +#}