From 0f92922979ec1f52c580079a4a49a7dc84af4ca1 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 22 Dec 2012 02:49:14 -0800 Subject: Sat Dec 22 02:47:27 PST 2012 --- community/pidgin-lwqq/0.1a_fix.patch | 12 ++++++++++ community/pidgin-lwqq/PKGBUILD | 38 +++++++++++++++++++++++++++++++ community/pidgin-lwqq/pidgin-lwqq.install | 11 +++++++++ 3 files changed, 61 insertions(+) create mode 100644 community/pidgin-lwqq/0.1a_fix.patch create mode 100644 community/pidgin-lwqq/PKGBUILD create mode 100644 community/pidgin-lwqq/pidgin-lwqq.install (limited to 'community/pidgin-lwqq') diff --git a/community/pidgin-lwqq/0.1a_fix.patch b/community/pidgin-lwqq/0.1a_fix.patch new file mode 100644 index 000000000..63f2adfd0 --- /dev/null +++ b/community/pidgin-lwqq/0.1a_fix.patch @@ -0,0 +1,12 @@ +--- a/src/liblwqq/http.c ++++ b/src/liblwqq/http.c +@@ -515,7 +515,9 @@ static int multi_timer_cb(CURLM *multi, long timeout_ms, void *userp) + } + if(g->still_running){ + lwqq_log(LOG_NOTICE,"still running:%d,timeout:%ld\n",g->still_running,timeout_ms); ++ #if USE_DEBUG + if(g->still_running>1)lwqq_gdb_whats_running(); ++ #endif + } + //close time clock + //this should always return 0 this is curl!! diff --git a/community/pidgin-lwqq/PKGBUILD b/community/pidgin-lwqq/PKGBUILD new file mode 100644 index 000000000..c6280985b --- /dev/null +++ b/community/pidgin-lwqq/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 81454 2012-12-21 09:33:44Z fyan $ +# Maintainer: Felix Yan + +pkgname=pidgin-lwqq +pkgver=0.1a +_pkgver=0.1-a +pkgrel=2 +pkgdesc="A pidgin plugin based on lwqq, a excellent safe useful library for webqq protocol" +arch=('i686' 'x86_64') +url="https://github.com/xiehuc/pidgin-lwqq" +license=('GPL3') +depends=('libpurple' 'curl' 'libev' 'hicolor-icon-theme') +optdepends=('telepathy-haze: Empathy plugin support') +makedepends=('git' 'cmake') +install=$pkgname.install +source=("https://github.com/xiehuc/$pkgname/archive/${_pkgver}.tar.gz" + 0.1a_fix.patch) + +build() +{ + cd "${srcdir}/$pkgname-${_pkgver}" + patch -Np1 -i "$srcdir/0.1a_fix.patch" + + rm -rf build + mkdir build + cd build + + cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_LIBEV=On .. + make +} + +package() +{ + cd "$srcdir/$pkgname-${_pkgver}/build" + make DESTDIR="${pkgdir}" install +} +md5sums=('d0efece1c2b2301f49c68f8a2b7bae95' + '18baf836e3a1198cdd9dbed287bf6609') diff --git a/community/pidgin-lwqq/pidgin-lwqq.install b/community/pidgin-lwqq/pidgin-lwqq.install new file mode 100644 index 000000000..c0797237a --- /dev/null +++ b/community/pidgin-lwqq/pidgin-lwqq.install @@ -0,0 +1,11 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} -- cgit v1.2.3-54-g00ecf