# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=gnome-icon-theme
pkgver=3.12.0
pkgrel=0
pkgdesc="icons for GNOME desktop environment"
url="http://art.gnome.org/"
arch="noarch"
license="GPL"
depends=
depends_dev=
makedepends="gtk+2.0 intltool icon-naming-utils"
install=
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"

_builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	DATADIRNAME=share ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-scrollkeeper \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="f14bed7f804e843189ffa7021141addd  gnome-icon-theme-3.12.0.tar.xz"
sha256sums="359e720b9202d3aba8d477752c4cd11eced368182281d51ffd64c8572b4e503a  gnome-icon-theme-3.12.0.tar.xz"
sha512sums="9dab14a5d30b1fa6655fbd44f15357158dc49ef01d27be678eaed35cb4a9f21546dee2a5d7fb50dac5e3595e161b0be7e7bc79daf47b772f0bb37109b0078bea  gnome-icon-theme-3.12.0.tar.xz"
