mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 18:14:51 +08:00
34 lines
873 B
Bash
34 lines
873 B
Bash
pkgname=knightsgame
|
|
_pkgname=knights
|
|
pkgver=025
|
|
pkgrel=4
|
|
pkgdesc='Action game that was originally released for Amiga in 1994.'
|
|
arch=('x86_64')
|
|
url='http://www.knightsgame.org.uk/'
|
|
license=('GPL3')
|
|
depends=('boost-libs' 'curl' 'directfb' 'fontconfig' 'sdl')
|
|
makedepends=(boost)
|
|
options=('!makeflags')
|
|
categories=('games')
|
|
source=("http://www.knightsgame.org.uk/files/${_pkgname}_${pkgver}_src.tar.gz")
|
|
sha1sums=('11f0abd60fc97c7692c7c99a5a37a2cf227cc8b3')
|
|
|
|
build() {
|
|
cd ${_pkgname}_${pkgver}_src
|
|
|
|
sed \
|
|
-e 's/-mt//g' \
|
|
-e "s/KNIGHTS_BINARY_NAME = knights/KNIGHTS_BINARY_NAME = $pkgname/" \
|
|
-e "s/SERVER_BINARY_NAME = knights_server/SERVER_BINARY_NAME = $pkgname-server/" \
|
|
-e "/^BOOST_LIBS/s|$| -lrt|" \
|
|
-i Makefile \
|
|
-i python/makemakefile.py
|
|
make PREFIX=/usr
|
|
}
|
|
|
|
package() {
|
|
cd ${_pkgname}_${pkgver}_src
|
|
|
|
make PREFIX=$pkgdir/usr install
|
|
}
|