mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
38 lines
1.0 KiB
Bash
38 lines
1.0 KiB
Bash
#
|
|
# 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
|
|
pkgver=018
|
|
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')
|
|
depends=(boost-libs curl fontconfig sdl)
|
|
makedepends=(boost)
|
|
options=('!makeflags')
|
|
source=("http://www.knightsgame.org.uk/files/${_pkgname}_${pkgver}_src.tar.gz")
|
|
md5sums=('2ea5998a3dea0e4e17ab488ad4da6281')
|
|
|
|
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
|
|
}
|