aboutsummaryrefslogtreecommitdiffstats
path: root/main/loudmouth/APKBUILD
blob: be795e5a5172d95245755b3a9f12476a226fc926 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=loudmouth
pkgver=1.5.3
pkgrel=0
pkgdesc="A lightweight Jabber client library"
url="http://groups.google.com/group/loudmouth-dev"
arch="all"
license="LGPL2+"
depends=""
depends_dev="pkgconfig gnutls-dev libidn-dev libasyncns-dev check-dev autoconf"
makedepends="$depends_dev glib-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://mcabber.com/files/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	default_prepare || return
}

build() {
	cd "$builddir"
	autoconf
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--disable-static \
		--with-asyncns=yes \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

check() {
        cd "$builddir"
	make check || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

sha512sums="ab6b16b4e644b69cdb7d8df1753d1bb5b43c2f1e76944e639339169b332e1b5c6a4246053c5b8a579ee9b53c845cef610b0040dfdffeb857180b6bab71adfcce  loudmouth-1.5.3.tar.bz2"