aboutsummaryrefslogtreecommitdiffstats
path: root/main/mcabber/APKBUILD
blob: 926590715f0cdcfe6b4d2861b4ddc754142c2a6a (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=mcabber
pkgver=0.10.2
pkgrel=1
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
		libotr3-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="6bb2302f5168ad4c28b647390e37f9b3  mcabber-0.10.2.tar.bz2"
sha256sums="e246d153f93a75b4f45879f447434db070503c9903bf3f995af396b3b94586f8  mcabber-0.10.2.tar.bz2"
sha512sums="976c29ec753a364392ba6b5280c9031d9eb8884236b7d07fbeaa69a731806706f72b93a0bbbca1eca4f11325412d5beff62b14d94acca912841b8b820c2b3652  mcabber-0.10.2.tar.bz2"