# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=mate-settings-daemon
pkgver=1.24.0
pkgrel=0
pkgdesc="Settings daemon for the MATE desktop environment"
url="https://mate-desktop.org"
arch="all"
license="GPL-2.0+ AND MIT AND LGPL-2.0+ AND GPL-3.0+"
depends=""
makedepends="dbus-dev dbus-glib-dev dconf-dev gtk+3.0-dev intltool
	libcanberra-dev libmatekbd-dev libmatemixer-dev libnotify-dev
	mate-desktop-dev nss-dev polkit-dev pulseaudio-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/mate-settings-daemon-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-pulse
	make
}

check() {
	make check
}

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

sha512sums="897d3540930ac407d802c9ecd1995e9bfee14eafadbbfad64aab1e7d93c9830111ac991d8f0df37e34efaa3f7cae9d59ee4d786b15acf0b87b8ba5d299bc1cc1  mate-settings-daemon-1.24.0.tar.xz"