summaryrefslogtreecommitdiff
path: root/community/pidgin-lwqq
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/pidgin-lwqq
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/pidgin-lwqq')
-rw-r--r--community/pidgin-lwqq/PKGBUILD41
-rw-r--r--community/pidgin-lwqq/pidgin-lwqq.install11
2 files changed, 52 insertions, 0 deletions
diff --git a/community/pidgin-lwqq/PKGBUILD b/community/pidgin-lwqq/PKGBUILD
new file mode 100644
index 000000000..9128d4372
--- /dev/null
+++ b/community/pidgin-lwqq/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 95053 2013-08-04 16:26:37Z fyan $
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+
+pkgname=pidgin-lwqq
+pkgver=0.2a.20130802
+_commit=bccb4d20b65e504f6ae575f7cc55babb9c66ff8d
+pkgrel=1
+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' 'hicolor-icon-theme' 'gtk-update-icon-cache' 'libev')
+optdepends=('pidgin: Multi-protocol instant messaging client'
+ 'telepathy-haze: Empathy plugin support')
+makedepends=('git' 'cmake')
+install=$pkgname.install
+source=("git://github.com/xiehuc/pidgin-lwqq.git#commit=$_commit"
+#source=("git://github.com/xiehuc/pidgin-lwqq.git#tag=$pkgver"
+ "git://github.com/xiehuc/lwqq.git")
+
+prepare() {
+ cd "$srcdir/$pkgname"
+ git submodule init
+ git config submodule."liblwqq".url "$srcdir/lwqq"
+ git submodule update
+}
+
+build() {
+ cd "${srcdir}/$pkgname"
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr .
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ make DESTDIR="${pkgdir}" install
+}
+
+sha512sums=('SKIP'
+ 'SKIP')
diff --git a/community/pidgin-lwqq/pidgin-lwqq.install b/community/pidgin-lwqq/pidgin-lwqq.install
new file mode 100644
index 000000000..6b1b64bdd
--- /dev/null
+++ b/community/pidgin-lwqq/pidgin-lwqq.install
@@ -0,0 +1,11 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}