aboutsummaryrefslogtreecommitdiffstats
path: root/main/pidgin/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-06-29 09:08:07 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-06-29 11:45:03 +0000
commitd9aea06febcb7240930eaec0769756c706b77282 (patch)
treeab4aee14e00df63510a23f03c0721f09a5aebe5e /main/pidgin/APKBUILD
parent2e130e9a35cd7105f7d9fe0b07e5d3d5aa593ec1 (diff)
downloadaports-d9aea06febcb7240930eaec0769756c706b77282.tar.bz2
aports-d9aea06febcb7240930eaec0769756c706b77282.tar.xz
main/pidgin: disable and split stuff
- disable audio/video, it does not work anyway - disable dbus support. no know application uses it and it can generate lots of events if you have many noisy chat channels - split avahi, ymsg, xmpp and others. To avoid installing stuff that will be unused.
Diffstat (limited to 'main/pidgin/APKBUILD')
-rw-r--r--main/pidgin/APKBUILD47
1 files changed, 42 insertions, 5 deletions
diff --git a/main/pidgin/APKBUILD b/main/pidgin/APKBUILD
index 238cf6650d..3c7a2686ea 100644
--- a/main/pidgin/APKBUILD
+++ b/main/pidgin/APKBUILD
@@ -1,17 +1,23 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pidgin
pkgver=2.10.11
-pkgrel=0
+pkgrel=1
pkgdesc="graphical multi-protocol instant messaging client for X"
url="http://pidgin.im/"
arch="all"
license="GPL"
depends=
makedepends="gtk+-dev intltool libsm-dev startup-notification-dev gtkspell-dev
- libxml2-dev gstreamer0.10-dev libidn-dev dbus-glib-dev gnutls-dev
- cyrus-sasl-dev ncurses-dev nss-dev farstream0.1-dev avahi-dev
+ libxml2-dev libidn-dev gnutls-dev avahi-dev
+ cyrus-sasl-dev ncurses-dev nss-dev
autoconf automake libtool"
-subpackages="$pkgname-dev $pkgname-doc finch libpurple $pkgname-lang"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang
+ libpurple-bonjour:_bonjour
+ libpurple-ymsg:_ymsg
+ libpurple-oscar:_oscar
+ libpurple-xmpp:_xmpp
+ finch libpurple
+ "
source="http://downloads.sourceforge.net/pidgin/pidgin-$pkgver.tar.bz2
http://downloads.sourceforge.net/project/pidgin/Pidgin/$pkgver/pidgin-$pkgver.tar.bz2
pidgin-underlinking.patch
@@ -37,6 +43,7 @@ build() {
--prefix=/usr \
--sysconfdir=/etc \
--enable-avahi \
+ --disable-dbus \
--disable-doxygen \
--disable-gnutls \
--disable-meanwhile \
@@ -45,7 +52,10 @@ build() {
--disable-schemas-install \
--disable-screensaver \
--disable-tcl \
- --enable-vv \
+ --disable-vv \
+ --disable-gstreamer \
+ --disable-gstreamer-interfaces \
+ --disable-farstream \
--enable-cyrus-sasl \
--enable-nss \
|| return 1
@@ -74,6 +84,33 @@ libpurple() {
mv "$pkgdir"/usr/share/purple "$pkgdir"/usr/share/sounds \
"$subpkgdir"/usr/share/
}
+
+_mv_purple() {
+ pkgdesc="$1"
+ shift
+ mkdir -p "$subpkgdir"/usr/lib/purple-2/
+ for i; do
+ mv "$pkgdir"/usr/lib/purple-2/${i}.* \
+ "$subpkgdir"/usr/lib/purple-2/ || return 1
+ done
+}
+
+_bonjour() {
+ _mv_purple "bonjour plugin for libpurple" libbonjour
+}
+
+_ymsg() {
+ _mv_purple "yahoo plugins for libpurple" libymsg libyahoo libyahoojp
+}
+
+_oscar() {
+ _mv_purple "AIM, ICQ plugins for libpurple" liboscar libaim libicq
+}
+
+_xmpp() {
+ _mv_purple "Jabber/XMPP plugins for libpurple" libxmpp libjabber
+}
+
md5sums="7c8bb6f997e05e7929104439872c2844 pidgin-2.10.11.tar.bz2
7c8bb6f997e05e7929104439872c2844 pidgin-2.10.11.tar.bz2
9e7f42f8bc4284009dff50e8128bf4f9 pidgin-underlinking.patch"