aboutsummaryrefslogtreecommitdiffstats
path: root/testing/loudmouth/APKBUILD
blob: 1d0c0b91da2a55fa7510f904aa7601ed491d591e (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=loudmouth
pkgver=1.4.3
pkgrel=1
pkgdesc="A lightweight Jabber client library"
url="http://groups.google.com/group/loudmouth-dev"
arch="all"
license="LGPL2+"
depends=""
depends_dev="pkgconfig glib-dev openssl-dev libidn-dev libasyncns-dev check-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://ftp.gnome.org/pub/gnome/sources/${pkgname}/1.4/${pkgname}-${pkgver}.tar.bz2
	01-fix-sasl-md5-digest-uri.patch
	03-drop-stanzas-on-fail.patch
	04-use-pkg-config-for-gnutls.patch"
_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--disable-static \
		--with-asyncns=yes \
		--with-ssl=openssl \
		--prefix=/usr \
		--with-libgnutls-prefix=/usr \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
	make check || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="55339ca42494690c3942ee1465a96937  loudmouth-1.4.3.tar.bz2
5a860172e76dc5df8e694602f360ce76  01-fix-sasl-md5-digest-uri.patch
d0f34028837b7ff93262373ac3d4dd59  03-drop-stanzas-on-fail.patch
2cfb0ef5c32c9bd377e3abb6ad38135a  04-use-pkg-config-for-gnutls.patch"