# $Id: PKGBUILD 241631 2015-06-30 21:12:31Z arojas $
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>

pkgname=kdesdk-thumbnailers
pkgver=15.04.3
pkgrel=1
pkgdesc='Plugins for the thumbnailing system'
url='https://projects.kde.org/projects/kde/kdesdk/kdesdk-thumbnailers'
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
groups=('kde-applications' 'kdesdk')
depends=('kdebase-runtime' 'gettext')
makedepends=('cmake' 'automoc4')
source=("http://download.kde.org/stable/applications/${pkgver}/src/kdesdk-thumbnailers-${pkgver}.tar.xz")
sha1sums=('1d4c217133300f4a6b731746426328ea2b35e48a')

build() {
  mkdir build
  cd build
  cmake ../kdesdk-thumbnailers-${pkgver} \
    -DCMAKE_BUILD_TYPE=Release \
    -DKDE4_BUILD_TESTS=OFF \
    -DCMAKE_INSTALL_PREFIX=/usr
  make
}

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