desktop/flare/PKGBUILD
Adrian Chaves Fernandez (Gallaecio) 9e5675a06a Flare 0.16.
2012-07-14 15:52:54 +00:00

47 lines
1.1 KiB
Bash

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=flare
pkgver=0.16
_developer=clintbellanger
_code=b3344302fd
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' 'sdl_ttf')
replaces=('osare')
categories=('games')
changelog=ChangeLog
source=($pkgname-$pkgver.tar.gz::https://github.com/$_developer/$pkgname/tarball/v$pkgver)
md5sums=('c902e2149cb640cceb2e7d41ebdd6bcb')
build() {
cd $srcdir/$_developer-$pkgname-*
# Some CMake changes.
sed -i -e "s#share/games#share#" -e "s#/games#/bin#" CMakeLists.txt
# Executable compilation.
mkdir build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBINDIR=bin \
-DDATADIR=share/$pkgname \
..
make
}
package() {
cd $srcdir/$_developer-$pkgname-*
cd build
make DESTDIR=$pkgdir install
# Documentation.
install -Dm644 ../README $pkgdir/usr/share/doc/$pkgname/readme.txt
}