# $Id: PKGBUILD 241472 2015-06-30 17:47:17Z arojas $
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Bhushan Shah <bhush94 at gmail dot com>

pkgname=plasma-mediacenter
pkgver=5.3.2
pkgrel=1
pkgdesc="A mediacenter user interface based on KDE Plasma components"
arch=(i686 x86_64)
url="http://community.kde.org/Plasma/Plasma_Media_Center/"
license=(GPL3)
depends=(plasma-workspace baloo)
makedepends=(extra-cmake-modules)
groups=(plasma)
source=("http://download.kde.org/stable/plasma/$pkgver/$pkgname-$pkgver.tar.xz")
md5sums=('c778958bd03ba2940898cd10d76e3107')

prepare() {
  mkdir -p build
}    

build() {
  cd build
  cmake ../$pkgname-$pkgver \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DLIB_INSTALL_DIR=lib \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
    -DCMAKE_BUILD_TYPE=Release \
    -DBUILD_TESTING=OFF
}

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