2011-08-22 19:33:49 +08:00
|
|
|
#
|
|
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
|
|
# Contributor: Thomas Dziedzic < gostrc at gmail >
|
|
|
|
# Contributor: Lauri Niskanen <ape@ape3000.com>
|
|
|
|
|
|
|
|
pkgname=knightsgame
|
|
|
|
_pkgname=knights
|
2012-02-24 06:35:19 +08:00
|
|
|
pkgver=019
|
2011-08-22 19:33:49 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='Action game that was originally released for Amiga in 1994.'
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url='http://www.knightsgame.org.uk/'
|
|
|
|
license=('GPL3')
|
2012-02-24 06:35:19 +08:00
|
|
|
depends=(boost-libs curl 'directfb' fontconfig sdl)
|
2011-10-16 05:48:58 +08:00
|
|
|
makedepends=(boost)
|
2011-08-22 19:33:49 +08:00
|
|
|
options=('!makeflags')
|
2012-03-07 19:00:46 +08:00
|
|
|
categories=('games')
|
2011-08-22 19:33:49 +08:00
|
|
|
source=("http://www.knightsgame.org.uk/files/${_pkgname}_${pkgver}_src.tar.gz")
|
2012-02-24 06:35:19 +08:00
|
|
|
md5sums=('f03496d3eddb3c20a0e590bbb8760363')
|
2011-08-22 19:33:49 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${_pkgname}_${pkgver}_src
|
|
|
|
|
|
|
|
sed \
|
|
|
|
-e 's|-lboost_thread-mt|-lboost_thread|g' \
|
|
|
|
-e "s/KNIGHTS_BINARY_NAME = knights/KNIGHTS_BINARY_NAME = $pkgname/" \
|
|
|
|
-e "s/SERVER_BINARY_NAME = knights_server/SERVER_BINARY_NAME = $pkgname-server/" \
|
|
|
|
-i Makefile
|
|
|
|
make PREFIX=/usr
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${_pkgname}_${pkgver}_src
|
|
|
|
|
|
|
|
make PREFIX=$pkgdir/usr install
|
|
|
|
}
|