# HG changeset patch # User Pascal Bellard # Date 1282467675 -7200 # Node ID 5e8163d91ee4bac7fffc45cc8073bee2b550c301 # Parent db0522a9fd7af383a80d215c0bbdad07a882f8e0 Add get-google-talkplugin diff -r db0522a9fd7a -r 5e8163d91ee4 get-google-talkplugin/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get-google-talkplugin/receipt Sun Aug 22 11:01:15 2010 +0200 @@ -0,0 +1,17 @@ +# SliTaz package receipt. + +PACKAGE="get-google-talkplugin" +VERSION="1.00" +CATEGORY="non-free" +SHORT_DESC="Get Google Talk Plugin." +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://www.google.com/chat/video" +TAGS="webcam chat" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp stuff/get-google-talkplugin $fs/usr/bin +} + diff -r db0522a9fd7a -r 5e8163d91ee4 get-google-talkplugin/stuff/get-google-talkplugin --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get-google-talkplugin/stuff/get-google-talkplugin Sun Aug 22 11:01:15 2010 +0200 @@ -0,0 +1,87 @@ +#!/bin/sh -e + +ROOT="$1" +PACKAGE="google-talkplugin" +TARBALL="google-talkplugin_current_i386.deb" +WGET_URL="http://dl.google.com/linux/direct/$TARBALL" +SHORT_DESC="Google Talk Plugin." +WEB_SITE="http://www.google.com/chat/video" +DEPENDS="firefox gcc-lib-base libssl pango gtk+ atk mesa glew \ +xorg-libICE xorg-libSM xorg-libXfixes xorg-libXt xorg-libXcomposite \ +xorg-libXext xorg-libXinerama xorg-libXrandr xorg-libXcursor" + +if test $(id -u) != 0 ; then + echo -e "\nYou must be root to run `basename $0`." + echo -e "Please type 'su' and root password to become super-user.\n" + exit 0 +fi + +if [ -d $ROOT/var/lib/tazpkg/installed/$PACKAGE ]; then + [ -n "$ROOT" ] && exit 1 + tazpkg remove $PACKAGE + [ -d /var/lib/tazpkg/installed/$PACKAGE ] && exit 1 +fi + +TMP_DIR=/tmp/$(basename $0)-$$-$RANDOM +CUR_DIR=$(pwd) +mkdir -p $TMP_DIR && cd $TMP_DIR + +# Download tarball +wget $WGET_URL +if [ ! -f $TARBALL ]; then + cd $CUR_DIR + rm -rf $TMP_DIR + echo "Could not download $TARBALL. Exiting." + exit 1 +fi + +# Extract package +dpkg-deb -e $TARBALL e +dpkg-deb -x $TARBALL x + +VERSION="$(awk '/Version:/ { print $2 }' < e/control | sed 's/-/./g')" + +# Create pseudo package +mkdir -p $PACKAGE-$VERSION/usr/share/$PACKAGE +mv x/opt/google/talkplugin/* $PACKAGE-$VERSION/usr/share/$PACKAGE +mv $PACKAGE-$VERSION/usr/share/$PACKAGE/lib $PACKAGE-$VERSION/usr + +# No auto updates... +rm -rf $PACKAGE-$VERSION/usr/share/$PACKAGE/cron + +cat > $PACKAGE-$VERSION/receipt <