aboutsummaryrefslogtreecommitdiffstats
path: root/main/pidgin/APKBUILD
blob: 4993e6fc8d8a8a372ed66927ac022bd8a3e665a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pidgin
pkgver=2.10.12
pkgrel=0
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 libidn-dev gnutls-dev avahi-dev
	cyrus-sasl-dev ncurses-dev nss-dev
	autoconf automake libtool"
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
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case "$i" in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	libtoolize || return 1
	aclocal -I m4macros && autoconf && automake --add-missing || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-avahi \
		--disable-dbus \
		--disable-doxygen \
		--disable-gnutls \
		--disable-meanwhile \
		--disable-nm \
		--disable-perl \
		--disable-schemas-install \
		--disable-screensaver \
		--disable-tcl \
		--disable-vv \
		--disable-gstreamer \
		--disable-gstreamer-interfaces \
		--disable-farstream \
		--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/
}

_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="14e0f5cfb2ed065e4dc80391a806ac76  pidgin-2.10.12.tar.bz2
14e0f5cfb2ed065e4dc80391a806ac76  pidgin-2.10.12.tar.bz2"
sha256sums="2c7523f0fefe89749c03b2b738ab9f7bd186da435be4762f1487eee31e77ffdd  pidgin-2.10.12.tar.bz2
2c7523f0fefe89749c03b2b738ab9f7bd186da435be4762f1487eee31e77ffdd  pidgin-2.10.12.tar.bz2"
sha512sums="4756bed3ae78b48bfeaa586def3c7a0014db76ce14ae8c6773c96bdca24b65e92b2805270af43960e2a11a600aeac35e030faa3f79dbe3301084ca9d970a5f03  pidgin-2.10.12.tar.bz2
4756bed3ae78b48bfeaa586def3c7a0014db76ce14ae8c6773c96bdca24b65e92b2805270af43960e2a11a600aeac35e030faa3f79dbe3301084ca9d970a5f03  pidgin-2.10.12.tar.bz2"