# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=mate-applets
pkgver=1.24.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/${pkgver%.*}/mate-applets-$pkgver.tar.xz"

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

check() {
	make check
}

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

sha512sums="d29e39a140310fef84cb0fe631568e0177ca5faaf2bf566211a23b32613fd6aabf06dd8ecd81a16e09553c659a7feda9ba372bb62a70504a235be58e07726ed2  mate-applets-1.24.1.tar.xz"