summaryrefslogtreecommitdiffstats
path: root/testing/mcabber/APKBUILD
blob: 251338c6e1e0855a7973a99aba03b3cf7630cb1b (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=mcabber
pkgver=0.10.1
pkgrel=0
pkgdesc="A small Jabber console client"
url="http://www.lilotux.net/~mikael/mcabber/"
arch="all"
license="GPL2+"
depends="beep"
depends_dev=""
options="libtool"
makedepends="	loudmouth-dev
		glib-dev
		ncurses-dev
		gpgme-dev
		aspell-dev
		libotr-dev
		libidn-dev
		enchant-dev
"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-example"
source="http://mcabber.com/files/$pkgname-$pkgver.tar.bz2"
_builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$_builddir"
	./configure \
		--disable-static \
		--enable-hgcset \
		--enable-enchant \
      		--enable-aspell \
		--enable-otr \
		--prefix=/usr \
		--mandir=/usr/share/man \
		|| return 1
	make || return 1
}

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

example() {
        # Put the example file into a seperate package
        mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/example || return 1
        mv "$_builddir"/mcabberrc.example \
		"$subpkgdir"/usr/share/doc/"$pkgname"/example/mcabberrc.example || return 1
}

md5sums="fe96beab30f535d5d6270fd1719659b4  mcabber-0.10.1.tar.bz2"