wok-current rev 7846

Up: linuxqq v1.0.2
author Liu Peng <rocky@slitaz.org>
date Tue Dec 28 16:07:50 2010 +0000 (2010-12-28)
parents e33ea4c4b370
children 38b6f92fbac6
files get-linuxqq/receipt get-linuxqq/stuff/get-linuxqq
line diff
     1.1 --- a/get-linuxqq/receipt	Tue Dec 28 16:44:48 2010 +0100
     1.2 +++ b/get-linuxqq/receipt	Tue Dec 28 16:07:50 2010 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="get-linuxqq"
     1.7 -VERSION="1.00"
     1.8 +VERSION="1.01"
     1.9  CATEGORY="non-free"
    1.10  SHORT_DESC="Instant messaging software from Tencent Inc."
    1.11  MAINTAINER="lufeng369@gmail.com"
     2.1 --- a/get-linuxqq/stuff/get-linuxqq	Tue Dec 28 16:44:48 2010 +0100
     2.2 +++ b/get-linuxqq/stuff/get-linuxqq	Tue Dec 28 16:07:50 2010 +0000
     2.3 @@ -3,9 +3,9 @@
     2.4  # Get and install Tencent QQ for Linux
     2.5  
     2.6  PACKAGE="linuxqq"
     2.7 -VERSION="v1.0.2-beta1"
     2.8 -RPMPKG="$PACKAGE-$VERSION.i386.rpm"
     2.9 -URL="http://dl_dir.qq.com/linuxqq/$RPMPKG"
    2.10 +VERSION="v1.0.2"
    2.11 +TARGZ="${PACKAGE}_${VERSION}_i386.tar.gz"
    2.12 +URL="http://dl_dir.qq.com/linuxqq/$TARGZ"
    2.13  CUR_DIR=$(pwd)
    2.14  TEMP_DIR=/tmp/$PACKAGE-$VERSION-$$
    2.15  ROOT="$1"
    2.16 @@ -29,31 +29,185 @@
    2.17  
    2.18  # Download the file
    2.19  wget $URL 
    2.20 -if [ ! -f $RPMPKG ]; then
    2.21 +if [ ! -f $TARGZ ]; then
    2.22  	cd $CUR_DIR
    2.23  	rm -rf $TEMP_DIR
    2.24 -	echo "Could not download $RPMPKG. Exiting."
    2.25 +	echo "Could not download $TARGZ. Exiting."
    2.26  	exit 1
    2.27  fi
    2.28  
    2.29 -rpm2cpio $RPMPKG | cpio -dium
    2.30 -mkdir -p $PACKAGE-$VERSION/fs
    2.31 -mv $TEMP_DIR/usr $PACKAGE-$VERSION/fs
    2.32 +tar xf $TARGZ
    2.33 +mkdir -p $PACKAGE-$VERSION/fs/usr/share/tencent/
    2.34 +mkdir -p $PACKAGE-$VERSION/fs/usr/share/applications/
    2.35 +mkdir -p $PACKAGE-$VERSION/fs/usr/bin/
    2.36 +mv $TEMP_DIR/${PACKAGE}_${VERSION}_i386 $TEMP_DIR/$PACKAGE-$VERSION/fs/usr/share/tencent/qq
    2.37  
    2.38  # extracted pkg can be removed: Save RAM
    2.39 -rm -rf $RPMPKG
    2.40 +rm -rf $TARGZ
    2.41  
    2.42  cd $TEMP_DIR
    2.43  
    2.44 +cat > $PACKAGE-$VERSION/fs/usr/bin/qq << EOT
    2.45 +#!/bin/sh
    2.46 +cd /usr/share/tencent/qq/
    2.47 +./qq
    2.48 +EOT
    2.49 +chmod +x $PACKAGE-$VERSION/fs/usr/bin/qq
    2.50 +
    2.51 +cat > $PACKAGE-$VERSION/fs/usr/share/applications/qq.desktop << EOT
    2.52 +[Desktop Entry]
    2.53 +Version=1.0
    2.54 +Encoding=UTF-8
    2.55 +Name=腾讯QQ
    2.56 +Comment=腾讯QQ
    2.57 +Exec=/usr/bin/qq
    2.58 +Icon=/usr/share/tencent/qq/qq.png
    2.59 +Terminal=false
    2.60 +Type=Application
    2.61 +Categories=Application;Network;Tencent Software;
    2.62 +StartupNotify=true
    2.63 +Name[zh_CN]=腾讯QQ
    2.64 +GenericName[zh_CN]=
    2.65 +Comment[zh_CN]=腾讯QQ
    2.66 +EOT
    2.67 +
    2.68  cat > $PACKAGE-$VERSION/receipt << EOT
    2.69  PACKAGE="$PACKAGE"
    2.70  VERSION="$VERSION"
    2.71  CATEGORY="non-free"
    2.72  SHORT_DESC="QQ for Linux $VERSION."
    2.73 -DEPENDS="gtk+"
    2.74 +DEPENDS="gtk+ gdk-pixbuf"
    2.75  WEB_SITE="http://im.qq.com/"
    2.76 +TAGS="chat im"
    2.77 +
    2.78 +post_install() {
    2.79 +    chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache
    2.80 +}
    2.81  EOT
    2.82  
    2.83 +# for qq.png
    2.84 +{ uudecode <<-!
    2.85 +begin-base64 664 -
    2.86 +iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgI
    2.87 +fAhkiAAAAAlwSFlzAAAK8AAACvABQqw0mAAAAB90RVh0U29mdHdhcmUATWFj
    2.88 +cm9tZWRpYSBGaXJld29ya3MgOLVo0ngAABPPSURBVGiB1ZlplJ1Vme9/e7/T
    2.89 +Gavq1Km5KkVlIiMZCCHEQIAwB5S2MYI0BBGkUWxb5XqbFqSFdikX7GXbDVzt
    2.90 +VkZRkcE0CCEYIcxzIAQImSqVpObhzOe857zD3vdDAfZdEhPQD/c+a70fzjpr
    2.91 +ve/vv//72ft59hZaa/5/DvMv9aJjjlxlOjFnSiweP8qrVk9y3ep8pXRaqdCw
    2.92 +batkmNYOHerfD+/rfXbPYO9uX/veX+K74i/hwEknfXJ5IZP/m3LZPdPzvDYd
    2.93 +hobpRGQkFhOOY2HZtrajMS2FGSgVFsNabePw3t47dva/84TWOvhzvv1nOfDZ
    2.94 +v147Z3dv3/8sFotnBp6fVFo7pmkKOx4j6kSxIw6mYxGJxqhvbCTV1GbG6hoi
    2.95 +geef037Y9NXNu7ufsYX5XU8HL31cho/twPErTjt/YiJ/neu6XVqHESEkAFJK
    2.96 +DNPENA0EAi0l0jCJxhLUNzTR1NFOR890Wju78CoF/43nnx3Z/MwTP9rd/84P
    2.97 +Pg7Hx3Jg2ZITvprL5a/xvKBZCD0JbRiYpg0CgiCgWq0iECitQYMONCqU1LyQ
    2.98 +fKZEMVtkzsIjrMXHruqqlGtXT58yv6u3/+1vaq39j8LykR048bgzv9bfP3BN
    2.99 +EARpKSVCCJxIhEKuSP9IHyDp7ughFotQq9UQgGXZFMtVhsdyWFaC2bNn09re
   2.100 +RrIxTVfPFJQK2Pb6K5Wx/b13Hzu36es337fOPVSej+TAGad++tyxsbFrPM9L
   2.101 +m6Y5Ce84jI9NUMjnWTB/AZ7vsWt7H+3tbUSjEYSAfL5I2XU57rjFmKbDzp1D
   2.102 +hEqRKpfJjo/QPqWDlo7OmFctX/Tm/tIQcN2hMh2yA5887dzD9/Xv+3k+X1hq
   2.103 +GIYWQgjbtshk8pRKRS5Yu4ZLv3gxCM3tP/s5d995L83NaZTSZCYy/P2VX+bC
   2.104 +tedR82r85Md3c9+vH6OxsZm6hgRSSppam6iUixTHR7OOJb7y9Iu/+8WhcB2y
   2.105 +A2MToxdWKu4SmExUIQSeFzIyMcypJ53Ild/8KjNnzgSgra2N7du289qrb6IF
   2.106 +HLvyaP7hqq8Tj8cBuOKKz7Nzx06efXYL060eVOhTqxaIxqNUvVoKrC9e9+3v
   2.107 +PvtP/3zNvoNxyUOBv+QLV8zzfP+sUClp2RZKKWGaJtlMBts0OX31ycycOZNs
   2.108 +NsfDDz3Mjh3b+KvPnAVCIIXk4ksuYvfu3dz2s9sYGBhg9uzZnHDCMXjVPGPD
   2.109 +g6igRj4zTiE7gR/4uK67bNOm5z59KGwHFXDZBZfJHdt3rQ4Vcw3D4P0pJ4Sg
   2.110 +UC6QTqeZO3cOAM889RS33nIrvb19xOIxWtuaaWltpqOjnV/ecw933X4H6x78
   2.111 +DWEYMnXaNCxTUCpkgRAVBlTLZYLAo1QuRbO5wurrr7uh888WoCwr4XvBUqWU
   2.112 +LaWBCgKEEJN/aphcJSd/a60YHR7izde3QKiJRiIAjI2OsnjRIr70pcsRUuK6
   2.113 +ZZxIDKU0WisQIIVAKU3oh4SBIgyDuZtffWPewfgOmgOxaCQdicXbSmWXMAh4
   2.114 +f8PSSlOXqGNiYoR3d+7i9NNP5tiVK7lg7YUIrUkkE4yNjVAuVxkaHOTyKy4H
   2.115 +YGhwCMeJsHPnLqpBhZZUK0pp4A+DIqXA9/zWvj1756xYtGLjc288pw7Ed1AH
   2.116 +KsVSm5AyhRCEQQDvjX4QBjSmG/FDj/WPPs7gyDDpdJqvX3kll3/ly/xu41Nk
   2.117 +cxU8H9ate4xMNg9Ae0c7u/b08uD9D2IKSX1DA4EffMAv5KSrvh9almVPXbby
   2.118 +OOdP8R3Uga2usB0tYlIrFAqJAUAYhkQiDq2NHTz3xNPcdNPNnH/hJWgjxm8f
   2.119 +fpyf/vRhMJqxLJMNG1/isitu5EuXX0S1VuPWm/+VF196je7WThzHoFL5w7QU
   2.120 +QqDDEGmaWOlmZ/dlV/3Jdf5P7gNCCBYfueoCadk/9MrlplJ2HGFMbmBSgAZC
   2.121 +EWVP3whon6OOWUa6XrBrywsko5rmlkaEhHw+TyaXZ/b8JYyMa17e/DbSSNHS
   2.122 +ksagQsSZnApKgyHA90NCKWhtbfrNuccs+vKV//7D4Y8lYOPM7sM3lar/8Vii
   2.123 +/fiB+nZSmRG8oIY0LDxfkHUltmUwvSWk1RmiyRpm6QxYvADap7VhRECYBkbM
   2.124 +IpPLs39/loER6M92s2t/I1vfDekbkggpqItrTENjC8GodFC5UT4lS9nzOxuv
   2.125 +OmVkx08Z1B+aBwecQrN+8GN5g+mccWw4fnyxMsLt8TTCjlOnAvwQfCWY1uRz
   2.126 +2qIx1q7IMHeKCzaQtCDdCPE4xOJgOhCfTqvdxRxVhNoOKO6BsX7efMvinvUR
   2.127 +Hns+znjJxJSCipCMV2ustnzODYspNRacf8/M49b/Dez/ME7jO9/5zocKeONr
   2.128 +V9ZHciNre0J38aoYjGDwvCdwhEO+IDh5XpGfXNbHmtMyNDf5EAI1QCXBTIGR
   2.129 +AqMBZAqMFWCcBeJYqEjIbYNghNYOn1OOzbOi22XLjii7h6MMBRUWiQr/1qKY
   2.130 +Xi3weolIb3PPy3fnvB1nLz/y0B1Yrt2UW60sHqxVWVyv+J6Zo1wLeaQWwwtN
   2.131 +pjSVaO2pUZmAfX2SpmZNuk4jqkUY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TiUjQtHptyBFNmdHDMOy9j7dpHZzvICFRDzYQOiRUKONUK
   2.148 +EdsmYprUWyYY5uT2akgmFxAJ+yUEAbhFqFTQfoiSingUVBb2D0NuThcPLZzH
   2.149 +w30ZpOdhl4sUTUG6rTXt2NbfeQbPMLlgA/+tmLvmR78WmWq4ViEWjA2N4Lou
   2.150 +hmGgcxmmzZrFshtuJH7XvfR++hxeV3HG8mAGIHyoVDSlkk+5VCYoFCCXgYkx
   2.151 +GB+DkREYGoShfhjaB6MDUM4DPgKFmYHsDnixBG+edRbtd9zHymu/Q0d7C2Eh
   2.152 +i2kYuKUShUxW2PHk8v3FyhlHdU79gPsDBzY/dNdMs77p3MzEhFnO5TFNgyAM
   2.153 +MYTBglmHc8ScqRhMRZ33GXY+v4mtuTL9hkmLpWiWimQIogie0oQWmIZGyPdG
   2.154 +6L1Kc7J4mhw/VYNRAUNtbeQ+eRqR089iySc+QWtHB/7AMF3pBra5NURdktAP
   2.155 +mBgZpbG1NW3EYqu7Tzz1EUB9IEAIwSknn72inMu1Z0dHESgM06RccYnGY3Qd
   2.156 +1o0N1BQkt7/LjEyeggMTOkYWRS0oo60IyahJKiiTrCms2iS3ECAl+BKqBuQd
   2.157 +h3L34aiFxyAWLsKZt5g506dTl24mZkwqra9L0NTSghaTfYdhmnjVKtmxcZlq
   2.158 +Sq+IlEpTgN4PBPzynnujd959/8piZsypuu57TbtEBQFOPEEimQQgOzBK6flX
   2.159 +meIHlFOSqKHpiYVE8po9dfUMn/e3iGVHUhsZJMjn0YGHkALsCNqJIOJJSLeQ
   2.160 +6DqMeHMz8YYUEdvk/YJfa40QgmgsQbK+HiEFSikcxyEMAkq5HFLSkncr3UdO
   2.161 +PaJ3856tkwLuvO0XTRP54qJqybWEnuyOgiB474WgpEADtYkRgtFxooCMmHiW
   2.162 +RVMkwC6ApzyYPZ8pqz+FHWh830OpECEEQhoYhoE0DAw5WfN9WAkQajAFhEoR
   2.163 +KoVEEvghlqWQhoFbLhP4nlBBkFShFoA2AbZu3RZ3Ik5aSkNIaeCHIVqDaVlU
   2.164 +Ky75XA4foOphVqpUgbgjsKISqSfzyai5OIUMCS/Asc3JKvQjhgoVSINCvsDE
   2.165 ++ARSSqLRCFJKtNYEgY9fqyGkIVx38nReArS0tmgpRKhUSLVWw7JM3d3duTka
   2.166 +i43l83n27NhJHrBjMUSpAkDU9EkZRUyzBhYopfFcl0B9aMlySFGtTR6LFvJ5
   2.167 +hoaGkaYxMnVaz8/r6pNbqm5VawWmZRutrS3q1DNO/oOAJUsXZ+ob6kd830dI
   2.168 +Qaqh7oFjjj7q0mQy8QLAW5vfYKx/nMS0KRSXLCIAjJ0KBmswEcAohCUP0VCP
   2.169 +YX68E3svULx/UfDOu7sY7B+kPtWw+/wL11zT2t5yfSQa8Xzfx7JNunum9Hf3
   2.170 +dOkPBJyx+pRsIpHYZJqml2pMPTlnzuxrb/zhd19v72hfX5dqUNvfeovNG58i
   2.171 +mkjgXH01+9acw2C6hXIgqZUhF0J24dHElxyFYRofGd4PFYWySyJmU6r6rF+/
   2.172 +kUI+T3tH24tfuOTCvY+sf+C/2tpb/zMWjVQc23ol3Zzaff313wLea2jmzJ2l
   2.173 +7rt3Xb9SYV/3tMNu+dWvb38HoLdv/1Bf396F46Oj04r5IktXrqJn3jRGjjye
   2.174 +zKzpuEcsoHzUMWRPOhlr7SV0Hr2U6PtnRocQWmv8QFFyPYJQUB+zefR3T3P7
   2.175 +f96BRr81a9bh169Zc/aQAN0/MPjS0ODgQCKRuP++B+7a9UEjprX+k8+Jp12y
   2.176 +PNGw8HVDdukr/+H7erRS1UNa680VrV/KK72lrPVurXVOa6201krpg4ZSWgeh
   2.177 +0uVKTY9mSnpwoqRdrfWW3cP61E9equOpxTtmLDxn9cHYtNYHF6C15vMrV32r
   2.178 +M9kVRJNz9T//4C49WvF1xtN693hF7xgt6/58VY8VqjpXrOqS6+uaF+gwDHUY
   2.179 +Kq3Ue0+odBAqXQsCXa76OpOv6IHRvB7JVXRFa72lL6PPPPdK3dFwmL74E0vu
   2.180 +1Hp/5M8W8OzVF6f2/7Djssrt9pM//1qy1har11iL9NXfv0v3Zcu6qLTeN5bT
   2.181 +7+4Z1dv7xvSeoYweHCvosWxZ50oVXSi5uliu6mK5poulqs6UqnosV9KDYznd
   2.182 +P5LTo2VXF7XWz28b1qvOvlpbpPT31pi6fCfv5n5i/ei1781beDABB2zq7z9+
   2.183 +ppWKD321oWP8XxtXhD0LTkgY81KNvLl1iPvXPctwBroP76Grq5loJIrSiiAI
   2.184 +8IMALwjxfUXND6gGilotpOoH1IKQQIGQEiOapKoMNvx+K9d84zr2PnMHN36l
   2.185 +ia/941ysw2NN1WxhWXW/v3jTra88P++znx07UB59qAAhYPXUWxe01+29qXN+
   2.186 +tMFefjw0LmPmIpfz5o2R2z/CA+s28dwLfdRkPXXNKZL1ddhWBGGYSMNECwMl
   2.187 +BAoJ0kQJiY9FICIUPdi2c5hf3LmOu274Np3F9dx5Q8Dqby6D5s9A3XlEYibu
   2.188 +tj1dxdGh7LVf2P3cOd9a/aEbzAEW7ZwMDOvoaD3t0a4Z4C+EkV0gekktzfLj
   2.189 +mwUXrQu49Vf3c9e1L7LhgVNYtupkjly2jI4paeojEhkqVOCBkAjbpuRDvuCx
   2.190 +v3cvr7/4AntefozGscf4p+NDPnuRgPkKhl+D0ILWz0HXp4jP2E/q3SePOL3h
   2.191 +liTcPPERBGwRlhPzHDvmiUqvw3A/ZPsny2HDAFOw/K80yxdq3nihnyffup2t
   2.192 +v7mPBzcuJtE5m2i8jki8oZRoaHBD3zcqhUyd8qtmUBzCyr1GT/gu5xwOx60F
   2.193 +e6EBEQP2BhCOgngIai+A3YWslDGtpoqVzB/w+PCAR4s/OfOc5nnpV27s6Rpe
   2.194 +07bAj8lmIYQwEYGEAFBistFyfciHVLIwtAfeeBtvQ6+Z35RJ3zoQhC85Imhc
   2.195 +YrtfOHtGbdlJ84i2zESmW4BmAQ0WaAmBBkujDdCEaDek8g7eQG9qcFdp6RVn
   2.196 +3bbh0Y8sAODahafUL52652+7WvJfaml125KJwDAdpGlIYShQocYvK7xCqP2a
   2.197 +DHMVxx3IxR4ZnjD+/cZNQy9ufu/dV7WI5hWL02vbG4OLWxpr0xNR37QbDOk0
   2.198 +SoSYvCAJtcarKeXVzDAzYvkDQ5HH+7JTbrh4wyuvHBDwYALej58uX9jZPtVc
   2.199 +KU3vtLBWmG+HlWQ8Zlu+D+N5X1Rl/Yi2EhtG8/ZDFZre+fYTj/zRPe8Fq24Q
   2.200 +Xe59bXM6I6ukl/u0rI7Pa0zoSF19hFrNC92aqBFtGLSt+BP5jLXxV082vHN/
   2.201 +YX35w3g+soD/l+P/AMNbZ955C9USAAAAAElFTkSuQmCC
   2.202 +====
   2.203 +!
   2.204 +} > $TEMP_DIR/$PACKAGE-$VERSION/fs/usr/share/tencent/qq/qq.png
   2.205 +
   2.206  # Pack
   2.207  tazpkg pack $PACKAGE-$VERSION
   2.208