# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=libayatana-indicator
pkgver=0.6.3
pkgrel=0
pkgdesc="Gnome library implementing the StatusNotifierItem specification"
url="https://ayatanaindicators.github.io/"
arch="all"
options="!check" # incompetent test author
license="GPL-3.0-only"
depends=""
makedepends="autoconf automake ayatana-ido-dev gtk+3.0-dev libtool"
subpackages="$pkgname-dev"
source="libayatana-indicator-$pkgver.tar.gz::https://github.com/AyatanaIndicators/libayatana-indicator/archive/$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -vif
}

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

check() {
	make check
}

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

sha512sums="5cd78d228d7c2afef229fa06dc9b0778b06fc2752dee0192c65d5140afbc28533b9862bc62ddb27f61f9f8fb26dfb736403202b2b4f90622fe892c61d621b888  libayatana-indicator-0.6.3.tar.gz"