aboutsummaryrefslogtreecommitdiffstats
path: root/community/pidgin/APKBUILD
blob: 24eb1185730862bbfcb274ffb9d2d59e2d7e8248 (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pidgin
pkgver=2.14.1
pkgrel=0
pkgdesc="Graphical, multi-protocol instant messaging client"
url="http://pidgin.im"
arch="all"
license="GPL-2.0-or-later"
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
	libgnt-dev
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang
	libpurple-bonjour:_bonjour
	libpurple-oscar:_oscar
	libpurple-xmpp:_xmpp
	finch libpurple
	"
#source="https://bitbucket.org/pidgin/main/downloads/$pkgname-$pkgver.tar.bz2"
source="https://downloads.sourceforge.net/project/pidgin/Pidgin/2.14.1/pidgin-2.14.1.tar.gz"
options="!check"

build() {
	./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
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

finch() {
	pkgdesc="text-based multi-protocol instant messaging client"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/finch "$subpkgdir"/usr/bin/
	mv "$pkgdir"/usr/lib/finch "$subpkgdir"/usr/lib/
}

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/
	local i
	for i; do
		mv "$pkgdir"/usr/lib/purple-2/${i}.* \
			"$subpkgdir"/usr/lib/purple-2/
	done
}

_bonjour() {
	_mv_purple "bonjour plugin for libpurple" libbonjour
}

_oscar() {
	_mv_purple "AIM, ICQ plugins for libpurple" liboscar libaim libicq
}

_xmpp() {
	_mv_purple "Jabber/XMPP plugins for libpurple" libxmpp libjabber
}

sha512sums="42afa7ab489816e2745d7da06ef29612b971aa41186c4a19691585ac899301661395759e03c7b0c37ea87eec017013c8835dbba724ac79fc0c8b42b9d4bb4f75  pidgin-2.14.1.tar.gz"