# Contributor: Sheila Aman <sheila@vulpine.house>
# Maintainer: Sheila Aman <sheila@vulpine.house>
pkgname=libayatana-indicator
pkgver=0.8.4
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
	wayland-protocols"
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="33f1f89ee89ec865d1a828fc3d2fd8ae9d4d46cd294a30c3fd94985ec04d8f19b989ad8b5ef1938b8e2b0d781b86da18668175d9a80715ef98ffd4cdd52d3b7f  libayatana-indicator-0.8.4.tar.gz"