Navigation

Project: wok

Clone project: hg clone http://hg.slitaz.org/wok

  • Download tarball:
  • bz2
  • gz

Search

wok changeset 13690:351e5fac42ac

fix get- script to work without error. But the plugin is still broken(bad install).
author xfred222
date Wed Dec 12 16:59:24 2012 -0500 (20 months ago ago)
parents 6b9560f1e886
children 7d300004a3b8
files get-google-talkplugin/stuff/get-google-talkplugin
line diff
     1.1 --- a/get-google-talkplugin/stuff/get-google-talkplugin	Tue Dec 11 13:57:59 2012 -0500
     1.2 +++ b/get-google-talkplugin/stuff/get-google-talkplugin	Wed Dec 12 16:59:24 2012 -0500
     1.3 @@ -34,7 +34,7 @@
     1.4  	echo "Could not download $TARBALL. Exiting."
     1.5  	exit 1
     1.6  fi
     1.7 -
     1.8 +	
     1.9  # Extract package
    1.10  dpkg-deb -e $TARBALL e
    1.11  dpkg-deb -x $TARBALL x
    1.12 @@ -42,12 +42,12 @@
    1.13  VERSION="$(awk '/Version:/ { print $2 }' < e/control | sed 's/-/./g')"
    1.14  
    1.15  # Create pseudo package
    1.16 -mkdir -p $PACKAGE-$VERSION/usr/share/$PACKAGE
    1.17 -mv x/opt/google/talkplugin/* $PACKAGE-$VERSION/usr/share/$PACKAGE
    1.18 -mv $PACKAGE-$VERSION/usr/share/$PACKAGE/lib $PACKAGE-$VERSION/usr
    1.19 +mkdir -p $PACKAGE-$VERSION/fs/usr/share/$PACKAGE
    1.20 +mv x/opt/google/talkplugin/* $PACKAGE-$VERSION/fs/usr/share/$PACKAGE
    1.21 +mv $PACKAGE-$VERSION/fs/usr/share/$PACKAGE/lib $PACKAGE-$VERSION/fs/usr
    1.22  
    1.23  # No auto updates...
    1.24 -rm -rf $PACKAGE-$VERSION/usr/share/$PACKAGE/cron
    1.25 +rm -rf $PACKAGE-$VERSION/fs/usr/share/$PACKAGE/cron
    1.26  
    1.27  cat > $PACKAGE-$VERSION/receipt <<EOT
    1.28  PACKAGE="$PACKAGE"
    1.29 @@ -59,29 +59,29 @@
    1.30  
    1.31  post_install()
    1.32  {
    1.33 -	chroot $1/ ln -s /usr/share/$PACKAGE/*.so /usr/lib/firefox*/plugins
    1.34 +	mkdir -p /usr/lib/firefox/plugins
    1.35 +	chroot $1/ ln -s /usr/share/$PACKAGE/*.so /usr/lib/firefox/plugins
    1.36  }
    1.37  
    1.38  post_remove()
    1.39 -{
    1.40 +{	 	 	 
    1.41  	for i in /usr/lib/firefox*/plugins/*.so ; do
    1.42  		case "$(readlink $i)" in
    1.43  		/usr/share/$PACKAGE/*) rm -f $i ;;
    1.44  		esac
    1.45 -	done
    1.46 +done
    1.47  }
    1.48  EOT
    1.49  
    1.50 +
    1.51  # Pack
    1.52  tazpkg pack $PACKAGE-$VERSION
    1.53  
    1.54 +# Install pseudo package
    1.55 +tazpkg install $PACKAGE-$VERSION.tazpkg --root=$ROOT
    1.56 +														
    1.57  # Clean to save RAM memory
    1.58  rm -rf $PACKAGE-$VERSION
    1.59 -
    1.60 -# Install pseudo package
    1.61 -tazpkg install $PACKAGE-$VERSION.tazpkg --root=$ROOT
    1.62 -
    1.63 -# Clean
    1.64  cd $CUR_DIR
    1.65  rm -rf $TMP_DIR
    1.66