# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=telepathy-mission-control
pkgver=5.16.6
pkgrel=3
pkgdesc="An account manager and channel dispatcher for the Telepathy framework"
url="https://telepathy.freedesktop.org"
arch="all"
license="LGPL-2.1-or-later"
depends_dev="
	dbus-dev
	dbus-glib-dev
	glib-dev
	networkmanager-dev
	"
makedepends="$depends_dev
	libxslt
	python3
	telepathy-glib-dev
	"
subpackages="$pkgname-dev $pkgname-doc"
source="https://telepathy.freedesktop.org/releases/telepathy-mission-control/telepathy-mission-control-$pkgver.tar.gz"

provides="dbus:org.freedesktop.Telepathy.AccountManager"
provider_priority=10

prepare() {
	default_prepare
	update_config_sub
}

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="56d62bc7270d2d62a490361f3ef3bc39384fde05ee5d69cb7e20db4f41665bd99d05b4cd2b5992b84dbfee5400684503e44c5b8c63cfa101e0cfe6a85b005e5e  telepathy-mission-control-5.16.6.tar.gz"
