# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=mate-applets
pkgver=1.19.1
pkgrel=0
pkgdesc="Applets for use with the MATE panel"
url="https://github.com/mate-desktop/mate-applets"
arch="all"
license="GPL-2.0"
depends="mate-icon-theme"
makedepends="intltool gtk+3.0-dev mate-panel-dev libwnck3-dev
	mate-desktop-dev dconf-dev itstool linux-headers libxml2-dev
	libxml2-utils libgtop-dev libmateweather-dev wireless-tools-dev
	gucharmap-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
options="suid"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--prefix=/usr \
		--disable-stickynotes
	make
}

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

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

sha512sums="70b0108e3bc2ac5e92ed28d407668cdec8a78c9ab276c8cbeaeb87e5a5833c1ceaf41306d9309ab5a27bd7dcaa2b864627f3a042f44ac66087524f53dc57f918  mate-applets-1.19.1.tar.xz"
