# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=mate-common
pkgver=1.22.0
pkgrel=0
pkgdesc="Additional development support for the MATE desktop environment"
url="https://mate-desktop.org"
arch="noarch"
license="GPL-3.0-only"
depends=""
makedepends=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://pub.mate-desktop.org/releases/1.22/mate-common-$pkgver.tar.xz"

build() {
	cd "$builddir"
	./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="3887634081c126c6c23f560ca256ae83edbc5f77f0fc0128c2aaa2b5652672ec6f21ca29b0b44802b03c5dfd53bf0da860093ec73c46fba58f7be12a1db1d2a3  mate-common-1.22.0.tar.xz"