# Maintainer: Evgeniy "arcanis" Alexeev <arcanis.arch at gmail dot com>
# Contributor: urbanslug

pkgname=kwin-scripts-tiling
_pkgname=tiling
pkgver=1.3.2
pkgrel=2
pkgdesc="Tiling script for kwin"
arch=('any')
url="http://kde-look.org/content/show.php?content=161151"
license=('GPL')
depends=('kdebase-workspace')
source=(http://kde-look.org/CONTENT/content-files/161151-${_pkgname}.kwinscript)
md5sums=('2de0fc923b1fdf709ce2083e025080f0')

package()
{
  install -d "${pkgdir}/usr/share/apps/kwin"
  cp -r "${srcdir}"/{contents,doc,metadata.desktop} "${pkgdir}/usr/share/apps/kwin"
  install -Dm644 "${srcdir}/metadata.desktop" "${pkgdir}/usr/share/kde4/services/kwin-script-tiling.desktop"
}
