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

pkgname=kdetoys-ktux
pkgver=15.04.3
pkgrel=1
pkgdesc='A Tux-in-a-spaceship screen saver'
url='https://projects.kde.org/projects/kde/kdetoys/ktux'
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
groups=('kdetoys')
depends=('kdebase-workspace')
makedepends=('cmake' 'automoc4')
install=${pkgname}.install
source=("http://download.kde.org/stable/applications/${pkgver}/src/ktux-${pkgver}.tar.xz")
sha1sums=('89d460458b38af67ceff81152cbf7b71139d882b')

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

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