# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=kde-base-artwork
pkgver=4.13.3
pkgrel=0
pkgdesc="artwork for KDE desktop"
url="http://www.kde.org/"
arch="noarch"
license="GPL LGPL"
depends=
depends_dev="kdelibs-dev"
makedepends="$depends_dev cmake automoc4"
install=""
subpackages=""
source="http://download.kde.org/stable/${pkgver}/src/${pkgname}-${pkgver}.tar.xz"
install_if="kdebase-workspace"

_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
	mkdir -p "$_builddir"/build
}

build() {
	cd "$_builddir"/build
	cmake -DCMAKE_INSTALL_PREFIX=/usr \
	      -Wno-dev "$_builddir" || return 1
	make || return 1
}

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

md5sums="db31357719eb419c2da9bea80bcb0248  kde-base-artwork-4.13.3.tar.xz"
sha256sums="c89759ff99519b6aa7c5a091daa274ed1f38e979273bff2e36ec19b2444ea5ab  kde-base-artwork-4.13.3.tar.xz"
sha512sums="31b90034122914a5edde5fe82df4bb9c86aeb6489b65b680b55e8f13686daf75aec910a66f1ee251fd321605df82d3fda2f421423058455c47cf23f665d5f0da  kde-base-artwork-4.13.3.tar.xz"