# Contributor: Bhushan Shah <bshah@kde.org>
# Maintainer: Bhushan Shah <bshah@kde.org>
pkgname=telepathy-mission-control
pkgver=5.16.5
pkgrel=0
arch="all"
url="http://telepathy.freedesktop.org/wiki/"
license="LGPL-2.1-or-later"
pkgdesc="Account Manager and Channel Dispatcher based on telepathy-glib"
depends_dev="gstreamer-dev libxslt-dev"
makedepends="$depends_dev dbus gtk-doc autoconf automake libtool python3 telepathy-glib-dev"
source="https://github.com/TelepathyIM/telepathy-mission-control/archive/$pkgname-$pkgver.tar.gz"
subpackages="$pkgname-dev $pkgname-doc"
options="!check" # Requires a running dbus daemon
builddir="$srcdir/$pkgname-$pkgname-$pkgver"

prepare() {
	default_prepare

	NOCONFIGURE=1 ./autogen.sh
}

build() {
	PYTHON=/usr/bin/python3 ./configure --prefix=/usr \
		--libexecdir=/usr/lib/telepathy \
		--enable-static=no
	make
}

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

sha512sums="60db00f0dd4a715808cb9264e3dd443359628db92902b4ad95f3a5d44f3f99baa28ca247a0a2d0fdf75b92cfa6e4c643a8b2dc6062f14a28d3e03846aff5e8d4  telepathy-mission-control-5.16.5.tar.gz"
