'flare' added.

This commit is contained in:
Adrian Chaves Fernandez (Gallaecio) 2011-03-08 15:11:26 +00:00
parent cac15d0ed7
commit f563878f30
2 changed files with 51 additions and 0 deletions

4
flare/ChangeLog Normal file
View File

@ -0,0 +1,4 @@
2010-11-23 Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
* 0.10-1 :
Imported from Arch Linux's AUR: http://aur.archlinux.org/packages.php?ID=37234

47
flare/PKGBUILD Normal file
View File

@ -0,0 +1,47 @@
#
# 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=flare
pkgver=0.11
_pkgver=011
pkgrel=1
pkgdesc="Action roleplaying game from an isometric perspective."
arch=('i686' 'x86_64')
url="http://clintbellanger.net/rpg/"
license=('GPL2' 'CCPL-by-sa')
depends=('sdl' 'sdl_image' 'sdl_mixer')
replaces=('osare')
changelog=ChangeLog
source=("http://$pkgname-engine.googlecode.com/files/${pkgname}_src_v$_pkgver.zip")
md5sums=('db1a7a7e446c06230380762399d114ae')
build() {
cd $srcdir/${pkgname}_v$_pkgver/src
g++ *.cpp -o $pkgname.bin -I/usr/include/SDL -lSDL -lSDL_image -lSDL_mixer
}
package() {
cd $srcdir/${pkgname}_v$_pkgver/src
install -m755 -d $pkgdir/usr/{bin,share/$pkgname/saves}
install -m755 $pkgname.bin $pkgdir/usr/share/$pkgname/$pkgname
cd $srcdir/${pkgname}_v$_pkgver/resources
cp -r * $pkgdir/usr/share/$pkgname
cat > $pkgdir/usr/bin/$pkgname << EOF
#!/bin/sh
cd /usr/share/$pkgname/
./$pkgname
EOF
chmod +x $pkgdir/usr/bin/$pkgname
chmod 775 $pkgdir/usr/share/$pkgname/saves
chown root:games $pkgdir/usr/share/$pkgname/saves
}