# Forked from Alpine, because it was deleted there, but we still need it for
# telepathy-logger-qt. This is obviously not a permanent solution.
pkgname=telepathy-logger
pkgver=0.8.2
pkgrel=1
pkgdesc="Telepathy framework logging daemon"
url="https://telepathy.freedesktop.org/components/telepathy-logger/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	dbus-glib-dev
	glib-dev
	intltool
	libxml2-dev
	libxslt
	python
	sqlite-dev
	telepathy-glib-dev"
checkdepends="dbus"
options="!check"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://telepathy.freedesktop.org/releases/telepathy-logger/telepathy-logger-$pkgver.tar.bz2"

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="f3eda26133a4c38eeb79b01cbe3b7801a5eb773e8b4e6ce621c47d3ca701025364c6b2b890caea00104f01ba85ae891a6fad82d7a9dc487fd7a980221cede451  telepathy-logger-0.8.2.tar.bz2"
