mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
37 lines
983 B
Bash
37 lines
983 B
Bash
|
#
|
||
|
# Games Packages for Chakra, part of chakra-project.org
|
||
|
#
|
||
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
||
|
|
||
|
# include global config
|
||
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||
|
|
||
|
pkgname=knights
|
||
|
_pkgname=Knights
|
||
|
pkgver=2.2.0
|
||
|
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=('6196e8ef8d2e7c16e38307469708f7cf')
|
||
|
|
||
|
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
|
||
|
}
|