aboutsummaryrefslogtreecommitdiffstats
path: root/main/mcabber/APKBUILD
blob: 54076a1713864359eb5c5508fa4d3e366bbcac09 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=mcabber
pkgver=1.0.4
pkgrel=0
pkgdesc="A small Jabber console client"
url="https://mcabber.com"
arch="all"
license="GPL2+"
depends="beep"
options="libtool"
makedepends="loudmouth-dev glib-dev ncurses-dev gpgme-dev aspell-dev
		libotr3-dev libidn-dev enchant-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://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

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples
	install -m644 mcabberrc.example \
		"$pkgdir"/usr/share/doc/$pkgname/examples/mcabberrc.example \
		|| return 1
}

md5sums="81ffa7866458b4853f4f155f09f05fb3  mcabber-1.0.4.tar.bz2"
sha256sums="63b6bc003fcceba4dc4b273ed1c71643c4f8d95e8696543d53f64a7672b1ce0a  mcabber-1.0.4.tar.bz2"
sha512sums="f4f85abcdfa341489e47ba5290e9cce79cdd749753155003e3a9b5edd145e158c91d0a32fe07983196be5729134279f21fbe94511a41b98b793b415157b6b15b  mcabber-1.0.4.tar.bz2"