# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-icon-theme
pkgver=1.20.0
pkgrel=0
pkgdesc="MATE desktop icons"
url="https://github.com/mate-desktop/mate-icon-theme"
arch="noarch"
license="GPL-2.0"
depends="mate-common"
makedepends="icon-naming-utils intltool"
subpackages="$pkgname-lang"
source="http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"

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

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

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

sha512sums="8305be9256a182bda67def62f243fc45d5cc607f7a1930ad5ba109ee0e64fdef17d334e786a99bdef8f940a02e3fec868dd16656ce9a37709e288a3b28bb5c95  mate-icon-theme-1.20.0.tar.xz"
