# $Id: PKGBUILD 237526 2015-04-19 15:54:12Z arojas $
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>

pkgname=step
pkgver=15.04.0
pkgrel=1
pkgdesc="Interactive Physical Simulator"
url="http://kde.org/applications/education/step/"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
groups=('kde-applications' 'kdeedu')
depends=('libqalculate' 'gsl' 'knewstuff' 'khtml' 'kdelibs4support')
makedepends=('extra-cmake-modules' 'python' 'kdoctools' 'eigen' 'mesa')
install=${pkgname}.install
conflicts=('kdeedu-step')
replaces=('kdeedu-step')
source=("http://download.kde.org/stable/applications/${pkgver}/src/step-${pkgver}.tar.xz")
sha1sums=('aa88c16829be5160d23fe05d1ec95455849dbff6')

build() {
  mkdir build
  cd build
  cmake ../step-${pkgver} \
    -DCMAKE_BUILD_TYPE=Release \
    -DBUILD_TESTING=OFF \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
  make
}

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