aboutsummaryrefslogtreecommitdiffstats
path: root/main/mcabber/APKBUILD
blob: 317ff9ccac1d4b34cb689385cb4d012a9de0625a (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=mcabber
pkgver=1.0.2
pkgrel=0
pkgdesc="A small Jabber console client"
url="http://www.lilotux.net/~mikael/mcabber/"
arch="all"
license="GPL2+"
depends="beep"
depends_dev="$makedepends"
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 \
		--build=$CBUILD \
		--host=$CHOST \
		--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
}

example() {
		pkgdesc="$pkgdesc (examples)"
		arch="noarch"
        # 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="3e264b15aa41f4ae43c8f9c87c6fbb43  mcabber-1.0.2.tar.bz2"
sha256sums="e7143891ea6c6ec2f3008c25c13506121d83d15aa83640827aea3b66a8761fde  mcabber-1.0.2.tar.bz2"
sha512sums="e7d8f54f0f5cbcd685d6ada49c29fbc3af3315d5727a7a6babcc0aae49880f0cc1df48a1ceec78caeb17822c26f8c00aae23df2565336d92c4e388c8cebb4263  mcabber-1.0.2.tar.bz2"