wok rev 446

Get-skype, get-flash-plugin: allow reinstall
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 16 18:55:45 2008 +0100 (2008-03-16)
parents 97df1279a37e
children 887eb5b2711f
files get-flash-plugin/stuff/get-flash-plugin get-skype/stuff/get-skype
line diff
     1.1 --- a/get-flash-plugin/stuff/get-flash-plugin	Sun Mar 16 14:39:17 2008 +0100
     1.2 +++ b/get-flash-plugin/stuff/get-flash-plugin	Sun Mar 16 18:55:45 2008 +0100
     1.3 @@ -6,6 +6,10 @@
     1.4  	exit 0
     1.5  fi
     1.6  
     1.7 +if [ -d /var/lib/tazpkg/installed/flash-plugin ]; then
     1.8 +  tazpkg remove flash-plugin
     1.9 +  [ -d /var/lib/tazpkg/installed/flash-plugin ] && exit 1
    1.10 +fi
    1.11  DIR=install_flash_player_9_linux
    1.12  TARBALL=$DIR.tar.gz
    1.13  WEB_SITE="http://www.adobe.com/products/flash/"
     2.1 --- a/get-skype/stuff/get-skype	Sun Mar 16 14:39:17 2008 +0100
     2.2 +++ b/get-skype/stuff/get-skype	Sun Mar 16 18:55:45 2008 +0100
     2.3 @@ -6,6 +6,12 @@
     2.4  	exit 0
     2.5  fi
     2.6  
     2.7 +if [ -d /var/lib/tazpkg/installed/skype ]; then
     2.8 +  tazpkg remove skype
     2.9 +  [ -d /var/lib/tazpkg/installed/skype ] && exit 1
    2.10 +fi
    2.11 +[ -d /usr/share/skype ] && rm -rf /usr/share/skype
    2.12 +
    2.13  # Download tarball
    2.14  WEB_SITE="http://www.skype.com/"
    2.15  wget ${WEB_SITE}go/getskype-linux-static
    2.16 @@ -20,15 +26,15 @@
    2.17  
    2.18  # Install files
    2.19  mkdir -p /usr/share/skype
    2.20 -mv */ LICENSE /usr/share/skype
    2.21 +mv */ LICENSE README /usr/share/skype
    2.22  mv skype /usr/bin
    2.23  mv skype.conf /etc
    2.24  mv skype.desktop /usr/share/applications
    2.25  ln /usr/share/skype/icons/*16.png /usr/share/pixmaps/skype.png
    2.26  
    2.27  # Create pseudo package
    2.28 -mkdir -p fs/usr/share/skype
    2.29 -mv README fs/usr/share/skype
    2.30 +mkdir -p fs/usr/bin
    2.31 +cp /usr/bin/get-skype fs/usr/bin
    2.32  find fs | cpio -o -H newc | gzip -9 > fs.cpio.gz
    2.33  cat > files.list <<EOT
    2.34  /usr/bin/skype
    2.35 @@ -36,7 +42,6 @@
    2.36  /usr/share/applications/skype.desktop
    2.37  /usr/share/pixmaps/skype.png
    2.38  $(find /usr/share/skype)
    2.39 -/usr/share/skype/README
    2.40  EOT
    2.41  cat > receipt <<EOT
    2.42  PACKAGE="skype"