# $Id: PKGBUILD 207746 2014-03-14 08:20:40Z andrea $ # Maintainer: Andrea Scarpino pkgname=kdeedu-ktouch pkgver=4.12.3 pkgrel=2 pkgdesc="Touch Typing Tutor" url="http://kde.org/applications/education/ktouch/" arch=('i686' 'x86_64') license=('GPL' 'LGPL' 'FDL') groups=('kde' 'kdeedu') depends=('kdebase-runtime') makedepends=('cmake' 'automoc4' 'mesa') install=${pkgname}.install source=("http://download.kde.org/stable/${pkgver}/src/ktouch-${pkgver}.tar.xz" 'slovenian.patch') sha1sums=('1fa7b166fe47d9895758417e717859625a043f0f' '8bc82fae5ae871253bc11c4778884966d6d4b58a') prepare() { mkdir build cd ktouch-${pkgver} patch -p1 -i "${srcdir}"/slovenian.patch } build() { cd build cmake ../ktouch-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DKDE4_BUILD_TESTS=OFF \ -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd build make DESTDIR="${pkgdir}" install }