wok-current view get-linuxqq/stuff/get-linuxqq @ rev 8336

Fix: xorg-libXrandr build_depends
author Antoine Bodin <gokhlayeh@slitaz.org>
date Wed Feb 02 01:55:01 2011 +0100 (2011-02-02)
parents 552220e919ae
children e2e4f523cad4
line source
1 #!/bin/sh
3 # Get and install Tencent QQ for Linux
5 PACKAGE="linuxqq"
6 VERSION="v1.0.2"
7 TARGZ="${PACKAGE}_${VERSION}_i386.tar.gz"
8 URL="http://dl_dir.qq.com/linuxqq/$TARGZ"
9 CUR_DIR=$(pwd)
10 TEMP_DIR=/tmp/$PACKAGE-$VERSION-$$
11 ROOT="$1"
13 # Check if we are root
14 if test $(id -u) != 0 ; then
15 echo -e "\nYou must be root to run `basename $0`."
16 echo -e "Please type 'su' and root password to become super-user.\n"
17 exit 1
18 fi
20 # Avoid reinstall
21 if [ -d $ROOT/var/lib/tazpkg/installed/$PACKAGE ]; then
22 echo -e "\n$PACKAGE package is already installed.\n"
23 exit 1
24 fi
26 # Create a TEMP_DIR
27 mkdir $TEMP_DIR
28 cd $TEMP_DIR
30 # Download the file
31 wget $URL
32 if [ ! -f $TARGZ ]; then
33 cd $CUR_DIR
34 rm -rf $TEMP_DIR
35 echo "Could not download $TARGZ. Exiting."
36 exit 1
37 fi
39 tar xf $TARGZ
40 mkdir -p $PACKAGE-$VERSION/fs/usr/share/tencent/
41 mkdir -p $PACKAGE-$VERSION/fs/usr/share/applications/
42 mkdir -p $PACKAGE-$VERSION/fs/usr/bin/
43 mv $TEMP_DIR/${PACKAGE}_${VERSION}_i386 $TEMP_DIR/$PACKAGE-$VERSION/fs/usr/share/tencent/qq
45 # extracted pkg can be removed: Save RAM
46 rm -rf $TARGZ
48 cd $TEMP_DIR
50 cat > $PACKAGE-$VERSION/fs/usr/bin/qq << EOT
51 #!/bin/sh
52 cd /usr/share/tencent/qq/
53 ./qq
54 EOT
55 chmod +x $PACKAGE-$VERSION/fs/usr/bin/qq
57 cat > $PACKAGE-$VERSION/fs/usr/share/applications/qq.desktop << EOT
58 [Desktop Entry]
59 Version=1.0
60 Encoding=UTF-8
61 Name=腾讯QQ
62 Comment=腾讯QQ
63 Exec=/usr/bin/qq
64 Icon=/usr/share/tencent/qq/qq.png
65 Terminal=false
66 Type=Application
67 Categories=Application;Network;Tencent Software;
68 StartupNotify=true
69 Name[zh_CN]=腾讯QQ
70 GenericName[zh_CN]=
71 Comment[zh_CN]=腾讯QQ
72 EOT
74 cat > $PACKAGE-$VERSION/receipt << EOT
75 PACKAGE="$PACKAGE"
76 VERSION="$VERSION"
77 CATEGORY="non-free"
78 SHORT_DESC="QQ for Linux $VERSION."
79 DEPENDS="gtk+ gdk-pixbuf"
80 WEB_SITE="http://im.qq.com/"
81 TAGS="chat im"
83 post_install() {
84 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache
85 }
86 EOT
88 # for qq.png
89 { uudecode <<-!
90 begin-base64 664 -
91 iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgI
92 fAhkiAAAAAlwSFlzAAAK8AAACvABQqw0mAAAAB90RVh0U29mdHdhcmUATWFj
93 cm9tZWRpYSBGaXJld29ya3MgOLVo0ngAABPPSURBVGiB1ZlplJ1Vme9/e7/T
94 Gavq1Km5KkVlIiMZCCHEQIAwB5S2MYI0BBGkUWxb5XqbFqSFdikX7GXbDVzt
95 VkZRkcE0CCEYIcxzIAQImSqVpObhzOe857zD3vdDAfZdEhPQD/c+a70fzjpr
96 ve/vv//72ft59hZaa/5/DvMv9aJjjlxlOjFnSiweP8qrVk9y3ep8pXRaqdCw
97 batkmNYOHerfD+/rfXbPYO9uX/veX+K74i/hwEknfXJ5IZP/m3LZPdPzvDYd
98 hobpRGQkFhOOY2HZtrajMS2FGSgVFsNabePw3t47dva/84TWOvhzvv1nOfDZ
99 v147Z3dv3/8sFotnBp6fVFo7pmkKOx4j6kSxIw6mYxGJxqhvbCTV1GbG6hoi
100 geef037Y9NXNu7ufsYX5XU8HL31cho/twPErTj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U
169 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
207 ====
208 !
209 } > $TEMP_DIR/$PACKAGE-$VERSION/fs/usr/share/tencent/qq/qq.png
211 # Pack
212 tazpkg pack $PACKAGE-$VERSION
214 # Clean to save RAM memory
215 rm -rf $PACKAGE-$VERSION
217 # Install pseudo package
218 yes y | tazpkg install $PACKAGE-$VERSION.tazpkg --root=$ROOT
220 # Clean
221 cd $CUR_DIR
222 rm -rf $TEMP_DIR