# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=mate-indicator-applet
pkgver=1.20.0
pkgrel=0
pkgdesc="A small applet to display information from various applications consistently in the panel"
url="https://github.com/mate-desktop/mate-indicator-applet"
arch="all"
license="GPL-3.0 LGPL-2.1"
makedepends="autoconf automake libtool mate-common glib-dev 
	gtk+3.0-dev mate-panel-dev intltool libindicator-dev"
subpackages="$pkgname-lang"
source="http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$builddir"
	default_prepare
	NOCONFIGURE=1 ./autogen.sh
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--enable-static=no \
		--libexecdir=/usr/libexec \
		--sysconfdir=/etc \
		--prefix=/usr
	make

}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="3f0fa40359d9b489471df5b22537d4ce6334a8c4e9024723e3e00f25ba75919f5c9f7ad8c79f4d946116b00b5aac6eed26ab149fdf01588b94d1be44f7ca23d5  mate-indicator-applet-1.20.0.tar.xz"
