# Maintainer: j.r <j.r@jugendhacker.de>
pkgname=xmppc
pkgver=0.1.2
pkgrel=2
pkgdesc="Command Line Interface Tool for XMPP"
url="https://codeberg.org/Anoxinon_e.V./xmppc"
arch="all"
license="GPL-3.0-or-later"
makedepends="libstrophe-dev autoconf automake libtool glib-dev gpgme-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver-3.tar.gz::https://codeberg.org/Anoxinon_e.V./xmppc/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname"

prepare() {
	default_prepare

	./bootstrap.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c688e44c46e698c80291a2dab60c1f3fd298db2cc085e3ef6a4cb3ac6f110ac447cb4dc19498d6ab62111de26c86a0aa0c2ed5b261e1529176c020f7f4619f86  xmppc-0.1.2-3.tar.gz
"
