summaryrefslogtreecommitdiff
path: root/main/mcabber/APKBUILD
blob: 6eb7a72bda991fb5fde3fabbe2f10c45410e2563 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=mcabber
pkgver=1.1.0
pkgrel=0
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"
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"