# Contributor: Luca Weiss <luca@lucaweiss.eu>
# Maintainer: Luca Weiss <luca@lucaweiss.eu>
pkgname=librda
pkgver=0.0.5
pkgrel=1
pkgdesc="Remote Desktop Awareness Shared Library"
url="https://github.com/ArcticaProject/librda"
arch="all"
license="LGPL-2.0-or-later"
makedepends="
	autoconf
	automake
	glib-dev
	gobject-introspection-dev
	gtk+3.0-dev
	intltool
	libtool
	"
subpackages="
	$pkgname-dev
	$pkgname-doc
	$pkgname-lang
	"
source="https://github.com/ArcticaProject/librda/archive/$pkgver/librda-$pkgver.tar.gz"
builddir="$srcdir/librda-$pkgver"

prepare() {
	autoreconf -fi
}

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="
bb6ecc04562592e2f438f46b536f4fd861dc35cbf6ba7e40519e75d8ae8c74f57cbef3a71085c8d532c69766bafac7c7b60f874907a604f07b6f259109d68053  librda-0.0.5.tar.gz
"
