# HG changeset patch # User Liu Peng # Date 1293552470 0 # Node ID 97f1b9b66b3defb4d875bdb58dfaebc984205caa # Parent e33ea4c4b37036351d47e421824e026ea31ccd06 Up: linuxqq v1.0.2 diff -r e33ea4c4b370 -r 97f1b9b66b3d get-linuxqq/receipt --- a/get-linuxqq/receipt Tue Dec 28 16:44:48 2010 +0100 +++ b/get-linuxqq/receipt Tue Dec 28 16:07:50 2010 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="get-linuxqq" -VERSION="1.00" +VERSION="1.01" CATEGORY="non-free" SHORT_DESC="Instant messaging software from Tencent Inc." MAINTAINER="lufeng369@gmail.com" diff -r e33ea4c4b370 -r 97f1b9b66b3d get-linuxqq/stuff/get-linuxqq --- a/get-linuxqq/stuff/get-linuxqq Tue Dec 28 16:44:48 2010 +0100 +++ b/get-linuxqq/stuff/get-linuxqq Tue Dec 28 16:07:50 2010 +0000 @@ -3,9 +3,9 @@ # Get and install Tencent QQ for Linux PACKAGE="linuxqq" -VERSION="v1.0.2-beta1" -RPMPKG="$PACKAGE-$VERSION.i386.rpm" -URL="http://dl_dir.qq.com/linuxqq/$RPMPKG" +VERSION="v1.0.2" +TARGZ="${PACKAGE}_${VERSION}_i386.tar.gz" +URL="http://dl_dir.qq.com/linuxqq/$TARGZ" CUR_DIR=$(pwd) TEMP_DIR=/tmp/$PACKAGE-$VERSION-$$ ROOT="$1" @@ -29,31 +29,185 @@ # Download the file wget $URL -if [ ! -f $RPMPKG ]; then +if [ ! -f $TARGZ ]; then cd $CUR_DIR rm -rf $TEMP_DIR - echo "Could not download $RPMPKG. Exiting." + echo "Could not download $TARGZ. Exiting." exit 1 fi -rpm2cpio $RPMPKG | cpio -dium -mkdir -p $PACKAGE-$VERSION/fs -mv $TEMP_DIR/usr $PACKAGE-$VERSION/fs +tar xf $TARGZ +mkdir -p $PACKAGE-$VERSION/fs/usr/share/tencent/ +mkdir -p $PACKAGE-$VERSION/fs/usr/share/applications/ +mkdir -p $PACKAGE-$VERSION/fs/usr/bin/ +mv $TEMP_DIR/${PACKAGE}_${VERSION}_i386 $TEMP_DIR/$PACKAGE-$VERSION/fs/usr/share/tencent/qq # extracted pkg can be removed: Save RAM -rm -rf $RPMPKG +rm -rf $TARGZ cd $TEMP_DIR +cat > $PACKAGE-$VERSION/fs/usr/bin/qq << EOT +#!/bin/sh +cd /usr/share/tencent/qq/ +./qq +EOT +chmod +x $PACKAGE-$VERSION/fs/usr/bin/qq + +cat > $PACKAGE-$VERSION/fs/usr/share/applications/qq.desktop << EOT +[Desktop Entry] +Version=1.0 +Encoding=UTF-8 +Name=腾讯QQ +Comment=腾讯QQ +Exec=/usr/bin/qq +Icon=/usr/share/tencent/qq/qq.png +Terminal=false +Type=Application +Categories=Application;Network;Tencent Software; +StartupNotify=true +Name[zh_CN]=腾讯QQ +GenericName[zh_CN]= +Comment[zh_CN]=腾讯QQ +EOT + cat > $PACKAGE-$VERSION/receipt << EOT PACKAGE="$PACKAGE" VERSION="$VERSION" CATEGORY="non-free" SHORT_DESC="QQ for Linux $VERSION." -DEPENDS="gtk+" +DEPENDS="gtk+ gdk-pixbuf" WEB_SITE="http://im.qq.com/" +TAGS="chat im" + +post_install() { + chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache +} EOT +# for qq.png +{ uudecode <<-! +begin-base64 664 - +iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgI +fAhkiAAAAAlwSFlzAAAK8AAACvABQqw0mAAAAB90RVh0U29mdHdhcmUATWFj +cm9tZWRpYSBGaXJld29ya3MgOLVo0ngAABPPSURBVGiB1ZlplJ1Vme9/e7/T +Gavq1Km5KkVlIiMZCCHEQIAwB5S2MYI0BBGkUWxb5XqbFqSFdikX7GXbDVzt +VkZRkcE0CCEYIcxzIAQImSqVpObhzOe857zD3vdDAfZdEhPQD/c+a70fzjpr +ve/vv//72ft59hZaa/5/DvMv9aJjjlxlOjFnSiweP8qrVk9y3ep8pXRa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wyuvHBDwYALej58uX9jZPtVc +KU3vtLBWmG+HlWQ8Zlu+D+N5X1Rl/Yi2EhtG8/ZDFZre+fYTj/zRPe8Fq24Q +Xe59bXM6I6ukl/u0rI7Pa0zoSF19hFrNC92aqBFtGLSt+BP5jLXxV082vHN/ +YX35w3g+soD/l+P/AMNbZ955C9USAAAAAElFTkSuQmCC +==== +! +} > $TEMP_DIR/$PACKAGE-$VERSION/fs/usr/share/tencent/qq/qq.png + # Pack tazpkg pack $PACKAGE-$VERSION