diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-23 20:19:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-23 20:19:41 +0000 |
commit | 4084b3e761be455fb91c1e6c361f9853c0837170 (patch) | |
tree | 49f9da0173395fed23d9fb4af78d25b2b15c6b18 | |
parent | c5ccba0b2480f46dc64a8562ebc40af6905017f7 (diff) | |
download | aports-4084b3e761be455fb91c1e6c361f9853c0837170.tar.bz2 aports-4084b3e761be455fb91c1e6c361f9853c0837170.tar.xz |
testing/pidgin: new aport
graphical multi-protocol instant messaging client for X
http://pidgin.im/
-rw-r--r-- | testing/pidgin/APKBUILD | 64 | ||||
-rw-r--r-- | testing/pidgin/msn_fix.patch | 28 |
2 files changed, 92 insertions, 0 deletions
diff --git a/testing/pidgin/APKBUILD b/testing/pidgin/APKBUILD new file mode 100644 index 000000000..a4db3e8b4 --- /dev/null +++ b/testing/pidgin/APKBUILD @@ -0,0 +1,64 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=pidgin +pkgver=2.7.0 +pkgrel=0 +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" +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-nss \ + --disable-perl \ + --disable-schemas-install \ + --disable-screensaver \ + --disable-tcl \ + --disable-vv \ + --enable-cyrus-sasl \ + || 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/testing/pidgin/msn_fix.patch b/testing/pidgin/msn_fix.patch new file mode 100644 index 000000000..f93fef8a4 --- /dev/null +++ b/testing/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; + |