2011-08-22 19:33:49 +08:00
|
|
|
pkgname=knightsgame
|
|
|
|
_pkgname=knights
|
2016-02-25 05:55:35 +08:00
|
|
|
pkgver=025
|
2016-03-15 20:48:25 +08:00
|
|
|
pkgrel=2
|
2011-08-22 19:33:49 +08:00
|
|
|
pkgdesc='Action game that was originally released for Amiga in 1994.'
|
2014-06-12 18:40:32 +08:00
|
|
|
arch=('x86_64')
|
2011-08-22 19:33:49 +08:00
|
|
|
url='http://www.knightsgame.org.uk/'
|
|
|
|
license=('GPL3')
|
2014-06-12 18:40:32 +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')
|
2014-06-12 18:40:32 +08:00
|
|
|
source=("http://www.knightsgame.org.uk/files/${_pkgname}_${pkgver}_src.tar.gz")
|
2016-02-25 05:55:35 +08:00
|
|
|
sha1sums=('11f0abd60fc97c7692c7c99a5a37a2cf227cc8b3')
|
2013-10-06 18:15:34 +08:00
|
|
|
|
2011-08-22 19:33:49 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${_pkgname}_${pkgver}_src
|
|
|
|
|
|
|
|
sed \
|
2012-09-17 05:22:43 +08:00
|
|
|
-e 's/-mt//g' \
|
2011-08-22 19:33:49 +08:00
|
|
|
-e "s/KNIGHTS_BINARY_NAME = knights/KNIGHTS_BINARY_NAME = $pkgname/" \
|
|
|
|
-e "s/SERVER_BINARY_NAME = knights_server/SERVER_BINARY_NAME = $pkgname-server/" \
|
2012-09-17 05:22:43 +08:00
|
|
|
-e "/^BOOST_LIBS/s|$| -lrt|" \
|
|
|
|
-i Makefile \
|
|
|
|
-i python/makemakefile.py
|
2011-08-22 19:33:49 +08:00
|
|
|
make PREFIX=/usr
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${_pkgname}_${pkgver}_src
|
|
|
|
|
|
|
|
make PREFIX=$pkgdir/usr install
|
|
|
|
}
|