aboutsummaryrefslogtreecommitdiffstats
path: root/community/mcabber/APKBUILD
blob: ccfcbf2483cef90c0d60283d1abdf8c908e10254 (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.1.0
pkgrel=2
pkgdesc="A small Jabber console client"
url="https://mcabber.com"
arch="all"
license="GPL-2.0-or-later"
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
	fix-roster-colors-on-freebsd.patch"
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
}

sha512sums="d12546e9fe9da94b6107f4d38d4083bee74e2702f7f2225e26be291230c6fe1319f60a3204da669dc00b14d69822425bf8214ebb723c3c4a7a33b1247a03093f  mcabber-1.1.0.tar.bz2
e8a1207eb04497b4e6ddfc5b6a55c9d6e07094504f472c4b643eeee1adfd81a1b38d64b82d8fec51d4bba757ca2e377f2e339a13f76c8ea0744a28ab3acc18a0  fix-roster-colors-on-freebsd.patch"