# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-media
pkgver=1.20.0
pkgrel=0
pkgdesc="media tools for MATE"
url="https://github.com/mate-desktop/mate-media"
arch="all"
license="GPL-2.0"
makedepends="intltool gobject-introspection-dev gtk+3.0-dev
	libcanberra-dev libunique-dev libmatemixer-dev mate-desktop-dev
	dconf-dev libxml2-dev startup-notification-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"

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

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

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

sha512sums="415d9325413e36805f0255cb6f9903146cb5bc8b61e4615d7e7e84a82ffc344c7c4eb85297abb62dff162bc11b1abdbaac86040b22467d9b220f2ac50800bf59  mate-media-1.20.0.tar.xz"
