# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=libindicator
pkgver=16.10
pkgrel=0
pkgdesc="Library for builidng indicators for applets"
url="https://launchpad.net/libindicator"
arch="all"
options="!check" # broken tests
license="GPL-3.0-only"
depends=""
makedepends="gtk+3.0-dev ido-dev autoconf automake libtool"
subpackages="$pkgname-dev"
source="http://unrealize.co.uk/source/libindicator-$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -vif
}

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

check() {
	make check
}

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

sha512sums="451aca0a2bd127bb49cc5b01f4cf1a33d85c3618257e822a16f29774f7eba919fbeca9515e5cb6c5e15bf315d20335ad5742d197cf561d2442891c1552de62a3  libindicator-16.10.tar.gz"