# $Id: PKGBUILD 209622 2014-03-31 10:25:59Z svenstaro $ # Maintainer: Andrea Scarpino pkgname=kdeutils-kcalc pkgver=4.12.4 pkgrel=1 pkgdesc='Scientific Calculator' url='http://kde.org/applications/utilities/kcalc/' arch=('i686' 'x86_64') license=('GPL' 'LGPL' 'FDL') depends=('kdebase-runtime') makedepends=('cmake' 'automoc4') groups=('kde' 'kdeutils') install=${pkgname}.install source=("http://download.kde.org/stable/${pkgver}/src/kcalc-${pkgver}.tar.xz") sha1sums=('7e760476d205b3848cb423768bf02cbca4f8d68d') build() { cd "${srcdir}" mkdir build cd build cmake ../kcalc-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DKDE4_BUILD_TESTS=OFF \ -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd $srcdir/build make DESTDIR=$pkgdir install }