summaryrefslogtreecommitdiffstats
path: root/main/pidgin
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-05-29 16:31:11 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-05-29 16:31:11 +0000
commite26ad95a03e076ef2003647120b584f47313ca00 (patch)
treeaff5bfa6ae8d0089356638b6a79bd1a1ee28dbcb /main/pidgin
parent9c0e50a29937432e6158b0ed64a54afff292cc7f (diff)
downloadaports-e26ad95a03e076ef2003647120b584f47313ca00.tar.bz2
aports-e26ad95a03e076ef2003647120b584f47313ca00.tar.xz
main/pidgin: moved form testing
Diffstat (limited to 'main/pidgin')
-rw-r--r--main/pidgin/APKBUILD64
-rw-r--r--main/pidgin/msn_fix.patch28
2 files changed, 92 insertions, 0 deletions
diff --git a/main/pidgin/APKBUILD b/main/pidgin/APKBUILD
new file mode 100644
index 000000000..bff483fc0
--- /dev/null
+++ b/main/pidgin/APKBUILD
@@ -0,0 +1,64 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=pidgin
+pkgver=2.7.0
+pkgrel=1
+pkgdesc="graphical multi-protocol instant messaging client for X"
+url="http://pidgin.im/"
+license="GPL"
+depends=
+makedepends="gtk+-dev intltool libsm-dev startup-notification-dev gtkspell-dev
+ libxml2-dev gstreamer-dev libidn-dev dbus-glib-dev gnutls-dev
+ cyrus-sasl-dev ncurses-dev nss-dev"
+subpackages="$pkgname-dev $pkgname-doc finch libpurple"
+source="http://downloads.sourceforge.net/pidgin/$pkgver/pidgin-$pkgver.tar.bz2
+ msn_fix.patch"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ cd "$_builddir"
+ patch -Np0 -i ""$srcdir"/msn_fix.patch" || return 1
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --disable-avahi \
+ --disable-doxygen \
+ --disable-gnutls \
+ --disable-meanwhile \
+ --disable-nm \
+ --disable-perl \
+ --disable-schemas-install \
+ --disable-screensaver \
+ --disable-tcl \
+ --disable-vv \
+ --enable-cyrus-sasl \
+ --enable-nss \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+finch() {
+ pkgdesc="text-based multi-protocol instant messaging client"
+ mkdir -p "$subpkgdir"/usr/lib "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/lib/gnt "$pkgdir"/usr/lib/libgnt.so.* \
+ "$pkgdir"/usr/lib/finch \
+ "$subpkgdir"/usr/lib/
+ mv "$pkgdir"/usr/bin/finch "$subpkgdir"/usr/bin/
+}
+
+libpurple() {
+ pkgdesc="multi-protocol instant messaging library"
+ mkdir -p "$subpkgdir"/usr/lib "$subpkgdir"/usr/share/sounds
+ mv "$pkgdir"/usr/lib/*purple* "$subpkgdir"/usr/lib/
+ mv "$pkgdir"/usr/share/purple "$pkgdir"/usr/share/sounds \
+ "$subpkgdir"/usr/share/
+}
+md5sums="63a36f91d29f5ac5a402ffd2d7dbbb72 pidgin-2.7.0.tar.bz2
+bbf9d6f6fc19342af7e059dc13432d27 msn_fix.patch"
diff --git a/main/pidgin/msn_fix.patch b/main/pidgin/msn_fix.patch
new file mode 100644
index 000000000..f93fef8a4
--- /dev/null
+++ b/main/pidgin/msn_fix.patch
@@ -0,0 +1,28 @@
+#
+#
+# patch "libpurple/protocols/msn/slplink.c"
+# from [a96a53635871463de0177e5a99fe4ebdc2c7d577]
+# to [87ada76abf90c44e615679efc5f8128bb941bba1]
+#
+============================================================
+--- libpurple/protocols/msn/slplink.c a96a53635871463de0177e5a99fe4ebdc2c7d577
++++ libpurple/protocols/msn/slplink.c 87ada76abf90c44e615679efc5f8128bb941bba1
+@@ -383,6 +383,7 @@ msn_slplink_release_slpmsg(MsnSlpLink *s
+ msn_slplink_release_slpmsg(MsnSlpLink *slplink, MsnSlpMessage *slpmsg)
+ {
+ MsnMessage *msg;
++ const char *passport;
+
+ slpmsg->msg = msg = msn_message_new_msnslp();
+
+@@ -421,7 +422,8 @@ msn_slplink_release_slpmsg(MsnSlpLink *s
+
+ msg->msnslp_header.total_size = slpmsg->size;
+
+- msn_message_set_attr(msg, "P2P-Dest", slplink->remote_user);
++ passport = purple_normalize(slplink->session->account, slplink->remote_user);
++ msn_message_set_attr(msg, "P2P-Dest", passport);
+
+ msg->ack_cb = msg_ack;
+ msg->nak_cb = msg_nak;
+