# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=ido
pkgver=13.10.0
pkgrel=0
pkgdesc="Library for indicator display objects"
url="https://launchpad.net/ido"
arch="all"
options="!check" # broken testsuite
license="(LGPL-2.1-only OR LGPL-3.0-only) AND GPL-3.0-only AND LGPL-2.0+"
depends=""
makedepends="gtk+3.0-dev autoconf automake libtool gobject-introspection-dev
	gtk-doc vala xorg-gtest-dev"
subpackages="$pkgname-dev"
source="http://archive.ubuntu.com/ubuntu/pool/universe/i/ido/ido_$pkgver+17.04.20161028.orig.tar.gz
	ubuntu-private.patch
	"
builddir="$srcdir"

prepare() {
	default_prepare
	autoreconf -vif
}

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

check() {
	make check
}

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

sha512sums="867157c9e316eb5ed69ebdf1017ed86990aabf7a885ba26acab36782f0f27e10b4621a7db15ac90335e808022490a98560d5ff443e6f697c578eed5868385ebd  ido_13.10.0+17.04.20161028.orig.tar.gz
1894f82bd8c2daa25cf41a0c401979941894ec2be165ddbe40eb5b2bc2a4272b22d19a1710e80c975c33bf4f1a6ff91920bf569e536851e65d702f1267fdc367  ubuntu-private.patch"