desktop/flare/PKGBUILD
Adrian Chaves Fernandez (Gallaecio) 9328a8535f Flare upgraded to its latest version, 0.12.
2011-03-15 18:31:15 +00:00

60 lines
1.5 KiB
Bash

#
# 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.12
_pkgver=012
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=('ab90e788518c46064a347cc3e17c7cab')
build() {
cd $srcdir/${pkgname}_v$_pkgver/build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
.
make
}
package() {
cd $srcdir/${pkgname}_v$_pkgver/
msg "Installing basic directory structure..."
install -m755 -d $pkgdir/usr/{bin,share/$pkgname}
msg "Installing executable..."
install -m755 $pkgname $pkgdir/usr/share/$pkgname/$pkgname
msg "Installing media..."
for folder in enemies fonts images items maps music npcs powers saves soundfx tilesetdefs
do
cp -R $folder $pkgdir/usr/share/$pkgname/
done
msg "Installing execution script..."
cat > $pkgdir/usr/bin/$pkgname << EOF
#!/bin/sh
cd /usr/share/$pkgname/
./$pkgname
EOF
msg "Setting the right permissions..."
chmod -R +x $pkgdir/usr/bin/$pkgname
chmod -R 775 $pkgdir/usr/share/$pkgname/saves
chown -R :games $pkgdir/usr/share/$pkgname
}