[arch-commits] Commit in lwqq/trunk (PKGBUILD pt_tea.patch)

Felix Yan fyan at archlinux.org
Thu Jan 29 07:59:11 UTC 2015


    Date: Thursday, January 29, 2015 @ 08:59:10
  Author: fyan
Revision: 126726

upgpkg: lwqq 0.4.1-2

fix login error.

more info: (chinese)
https://github.com/xiehuc/pidgin-lwqq/issues/616
https://github.com/xiehuc/lwqq/pull/26

Added:
  lwqq/trunk/pt_tea.patch
Modified:
  lwqq/trunk/PKGBUILD

--------------+
 PKGBUILD     |   13 ++++++++++---
 pt_tea.patch |   28 ++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-01-29 02:56:34 UTC (rev 126725)
+++ PKGBUILD	2015-01-29 07:59:10 UTC (rev 126726)
@@ -5,7 +5,7 @@
 pkgver=0.4.1
 _gitver="tag=v$pkgver"
 #_gitver='commit=472881c1b122bad32089c1488a43414e1f85e077'
-pkgrel=1
+pkgrel=2
 pkgdesc="A library for webqq protocol"
 arch=('i686' 'x86_64')
 url="https://github.com/xiehuc/lwqq"
@@ -12,9 +12,16 @@
 license=('GPL3')
 depends=('curl' 'libev' 'js17' 'sqlite')
 makedepends=('git' 'cmake')
-source=("git://github.com/xiehuc/lwqq.git#$_gitver")
-sha512sums=('SKIP')
+source=("git://github.com/xiehuc/lwqq.git#$_gitver"
+        pt_tea.patch)
+sha512sums=('SKIP'
+            '277a08329f353924deca3266489e8710f56149f2e645ac9998023b999ef901baf11a0ce3b851bfad1e6f1d76f7536dc3433846c1d83aa8ba52c820755072576a')
 
+prepare() {
+  cd $pkgname
+  patch -p1 -i ../pt_tea.patch
+}
+
 build() {
   cd $pkgname
   

Added: pt_tea.patch
===================================================================
--- pt_tea.patch	                        (rev 0)
+++ pt_tea.patch	2015-01-29 07:59:10 UTC (rev 126726)
@@ -0,0 +1,28 @@
+From 7a1ad123e8347867fd25e7b587099db8ab1f9e97 Mon Sep 17 00:00:00 2001
+From: EricInBj <ericinbj at hotmail.com>
+Date: Thu, 29 Jan 2015 14:23:37 +0800
+Subject: [PATCH] =?UTF-8?q?Fix:=20=E4=B8=80=E7=9B=B4=E6=8F=90=E7=A4=BA?=
+ =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=90=8D=E6=88=96=E5=AF=86=E7=A0=81=E9=94=99?=
+ =?UTF-8?q?=E8=AF=AF=E6=97=A0=E6=B3=95=E7=99=BB=E5=BD=95=E7=9A=84=E9=97=AE?=
+ =?UTF-8?q?=E9=A2=98?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+---
+ lib/login.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/login.c b/lib/login.c
+index 78b06ce..aa8b90f 100644
+--- a/lib/login.c
++++ b/lib/login.c
+@@ -129,7 +129,7 @@ static LwqqAsyncEvent* check_need_verify(LwqqClient *lc,const char* appid)
+ 	srand48(time(NULL));
+ 	double random = drand48();
+ 	snprintf(url, sizeof(url), WEBQQ_CHECK_HOST"/check?uin=%s&appid=%s&"
+-			"js_ver=10037&js_type=0&%s%s&u1=http%%3A%%2F%%2Fweb2.qq.com%%2Floginproxy.html&r=%.16lf",
++			"js_ver=10112&js_type=0&%s%s&pt_tea=1&r=%.16lf",
+ 			lc->username, appid,
+ 			lc->login_sig?"login_sig=":"",
+ 			lc->login_sig?:"",



More information about the arch-commits mailing list