Red Eclipse stable release added based on AUR's source package.

This commit is contained in:
Adrian Chaves Fernandez (Gallaecio) 2011-03-16 00:37:06 +00:00
parent 9328a8535f
commit bf733125ae

43
redeclipse/PKGBUILD Normal file
View File

@ -0,0 +1,43 @@
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=redeclipse
pkgver=1.0
pkgrel=1
pkgdesc="A single-player and multi-player first-person ego-shooter, built as a total conversion of Cube Engine 2"
arch=('i686' 'x86_64')
url="http://redeclipse.net"
license=('CCPL-by-sa' 'ZLIB')
depends=('sdl_image' 'libgl' 'sdl_mixer')
makedepends=('mesa')
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}_${pkgver}_linux.tar.bz2")
md5sums=('8d8aa038c7c866bced43b110333b37d7')
build() {
cd $srcdir/$pkgname/src
make
}
package() {
cd $srcdir/$pkgname
install -d $pkgdir/usr/{share/$pkgname,}/bin
sed -i "s|RE_DATA=.|RE_DATA=/usr/share/$pkgname|" $pkgname.sh
install -m755 src/re{server,client} $pkgdir/usr/share/$pkgname/bin/
cp -rf data/ $pkgdir/usr/share/$pkgname
cat <<EOF > $pkgdir/usr/bin/$pkgname
#!/bin/sh
cd /usr/share/$pkgname
exec bin/reclient -r "\$@"
EOF
chmod 755 $pkgdir/usr/bin/$pkgname
install -Dm644 src/redeclipse.ico $pkgdir/usr/share/pixmaps/$pkgname.png
install -Dm644 license.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
}