2011-03-16 08:37:06 +08:00
|
|
|
#
|
|
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2011-07-29 01:46:34 +08:00
|
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
2011-03-16 08:37:06 +08:00
|
|
|
|
|
|
|
pkgname=redeclipse
|
2013-03-23 22:54:57 +08:00
|
|
|
pkgver=1.4
|
|
|
|
pkgrel=1
|
2012-09-01 17:33:00 +08:00
|
|
|
pkgdesc='A first-person shooter, built as a total conversion of Cube Engine 2'
|
2011-08-01 05:34:18 +08:00
|
|
|
arch=(i686 x86_64)
|
|
|
|
url=http://redeclipse.net
|
|
|
|
license=(CCPL-by-sa ZLIB)
|
2012-02-15 02:43:59 +08:00
|
|
|
depends=(enet libgl mesa sdl sdl_image sdl_mixer zlib hicolor-icon-theme)
|
2012-09-01 17:33:00 +08:00
|
|
|
makedepends=('mesa' 'gzip')
|
2012-03-07 19:00:46 +08:00
|
|
|
categories=('games')
|
2013-03-23 22:54:57 +08:00
|
|
|
source=(http://downloads.sourceforge.net/$pkgname/${pkgname}_${pkgver}_nix.tar.bz2)
|
|
|
|
md5sums=('3d478f5cf4838adcf5cde8d3421f2ffe')
|
2011-03-16 08:37:06 +08:00
|
|
|
|
|
|
|
build() {
|
2013-03-23 22:54:57 +08:00
|
|
|
cd "$srcdir/$pkgname-$pkgver/src"
|
2011-08-01 05:34:18 +08:00
|
|
|
|
2013-03-23 22:54:57 +08:00
|
|
|
# System Enet.
|
|
|
|
sed \
|
|
|
|
-e "s#-Ienet/include#-I/usr/share/enet/include#" \
|
|
|
|
-e "s#-Lenet/.libs##" \
|
|
|
|
-e "s#client: libenet#client:#" \
|
|
|
|
-e "s#server: libenet#server:#" \
|
|
|
|
-i core.mk
|
2011-08-01 05:34:18 +08:00
|
|
|
|
|
|
|
# Compilation.
|
2011-03-16 08:37:06 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2013-03-23 22:54:57 +08:00
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
2012-02-15 02:43:59 +08:00
|
|
|
make -C src/ DESTDIR="$pkgdir" prefix=/usr system-install
|
2011-07-29 01:46:34 +08:00
|
|
|
|
|
|
|
# License.
|
2012-09-01 17:33:00 +08:00
|
|
|
install -Dm644 doc/all-licenses.txt "$pkgdir/usr/share/licenses/$pkgname/license.txt"
|
2011-03-16 08:37:06 +08:00
|
|
|
}
|