aboutsummaryrefslogtreecommitdiffstats
path: root/main/pidgin/APKBUILD
blob: 480e04ac6e32f069ddb790cdde3312aa27b114a0 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pidgin
pkgver=2.7.7
pkgrel=0
pkgdesc="graphical multi-protocol instant messaging client for X"
url="http://pidgin.im/"
arch="x86 x86_64"
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/pidgin-$pkgver.tar.bz2"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
}

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="121da2bbefce693382ea1218debb07bf  pidgin-2.7.7.tar.bz2"