# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=mate-applets
pkgver=1.22.1
pkgrel=0
pkgdesc="Utility applications for the MATE desktop environment"
url="https://mate-desktop.org"
arch="all"
license="LGPL-2.0+ AND GPL-2.0+ AND GPL-2.0-only"
depends=""
makedepends="dbus-dev dbus-glib-dev gtk+3.0-dev gtksourceview-3.0-dev
	gucharmap-dev intltool itstool libmateweather-dev libnotify-dev
	libwnck-dev libxml2-dev libxml2-utils mate-panel-dev polkit-dev
	upower-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/1.22/mate-applets-$pkgver.tar.xz"

build() {
	cd "$builddir"
	rm -r mateweather/docs/ru
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

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

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

sha512sums="d132c8b5e433a557785745032235a5792d04edd7c249269d9a4066fb345b76955bdca71164f7b321f41f566803694d85d9cd7690fbd699daa54788572f0eb986  mate-applets-1.22.1.tar.xz"