desktop/knights/PKGBUILD
2011-05-22 12:42:15 +00:00

39 lines
981 B
Bash

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichav@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=knights
_pkgname=Knights
pkgver=2.3.2
pkgrel=1
pkgdesc="Chess board with XBoard protocol support."
arch=('i686' 'x86_64')
url="http://kde-apps.org/content/show.php/Knights?content=122046"
license=('GPL2')
depends=('kdegames-common')
optdepends=('gnuchess: for playing against the computer.')
makedepends=('automoc4' 'cmake' 'docbook-xsl')
changelog=ChangeLog
source=("http://dl.dropbox.com/u/2888238/$_pkgname/$pkgname-$pkgver.tar.bz2")
md5sums=('34b14b6df963e8af93b68205e7bcda1a')
build()
{
cd $srcdir/$pkgname-$pkgver
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
..
make
}
package()
{
cd $srcdir/$pkgname-$pkgver/build
make DESTDIR=$pkgdir install
}