Commit 9328a853 authored by Adrián Chaves's avatar Adrián Chaves

Flare upgraded to its latest version, 0.12.

parent bb0c5622
......@@ -7,8 +7,8 @@
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=flare
pkgver=0.11
_pkgver=011
pkgver=0.12
_pkgver=012
pkgrel=1
pkgdesc="Action roleplaying game from an isometric perspective."
arch=('i686' 'x86_64')
......@@ -18,30 +18,42 @@ depends=('sdl' 'sdl_image' 'sdl_mixer')
replaces=('osare')
changelog=ChangeLog
source=("http://$pkgname-engine.googlecode.com/files/${pkgname}_src_v$_pkgver.zip")
md5sums=('db1a7a7e446c06230380762399d114ae')
md5sums=('ab90e788518c46064a347cc3e17c7cab')
build() {
cd $srcdir/${pkgname}_v$_pkgver/src
cd $srcdir/${pkgname}_v$_pkgver/build
g++ *.cpp -o $pkgname.bin -I/usr/include/SDL -lSDL -lSDL_image -lSDL_mixer
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
.
make
}
package() {
cd $srcdir/${pkgname}_v$_pkgver/src
cd $srcdir/${pkgname}_v$_pkgver/
install -m755 -d $pkgdir/usr/{bin,share/$pkgname/saves}
install -m755 $pkgname.bin $pkgdir/usr/share/$pkgname/$pkgname
msg "Installing basic directory structure..."
install -m755 -d $pkgdir/usr/{bin,share/$pkgname}
cd $srcdir/${pkgname}_v$_pkgver/resources
cp -r * $pkgdir/usr/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
chmod +x $pkgdir/usr/bin/$pkgname
chmod 775 $pkgdir/usr/share/$pkgname/saves
chown root:games $pkgdir/usr/share/$pkgname/saves
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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment