mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
41 lines
1.0 KiB
Bash
41 lines
1.0 KiB
Bash
#
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
|
|
pkgname=redeclipse
|
|
pkgver=1.4
|
|
pkgrel=1
|
|
pkgdesc='A first-person shooter, built as a total conversion of Cube Engine 2'
|
|
arch=(i686 x86_64)
|
|
url=http://redeclipse.net
|
|
license=(CCPL-by-sa ZLIB)
|
|
depends=(enet libgl mesa sdl sdl_image sdl_mixer zlib hicolor-icon-theme)
|
|
makedepends=('mesa' 'gzip')
|
|
categories=('games')
|
|
source=(http://downloads.sourceforge.net/$pkgname/${pkgname}_${pkgver}_nix.tar.bz2)
|
|
md5sums=('3d478f5cf4838adcf5cde8d3421f2ffe')
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver/src"
|
|
|
|
# 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
|
|
|
|
# Compilation.
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
make -C src/ DESTDIR="$pkgdir" prefix=/usr system-install
|
|
|
|
# License.
|
|
install -Dm644 doc/all-licenses.txt "$pkgdir/usr/share/licenses/$pkgname/license.txt"
|
|
}
|