desktop/flare/PKGBUILD

46 lines
1.1 KiB
Bash
Raw Normal View History

2011-03-08 23:11:26 +08:00
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=flare
2012-10-01 06:23:45 +08:00
_pkgname=flare-game
2013-04-02 16:21:18 +08:00
pkgver=0.18
2011-03-08 23:11:26 +08:00
pkgrel=1
2012-10-01 06:23:45 +08:00
pkgdesc="Action roleplaying game from an isometric perspective"
2011-03-08 23:11:26 +08:00
arch=('i686' 'x86_64')
url="http://clintbellanger.net/rpg/"
license=('GPL2' 'CCPL-by-sa')
2012-01-03 00:46:58 +08:00
depends=('sdl' 'sdl_image' 'sdl_mixer' 'sdl_ttf')
2011-03-08 23:11:26 +08:00
replaces=('osare')
2012-03-07 19:00:46 +08:00
categories=('games')
2011-03-08 23:11:26 +08:00
changelog=ChangeLog
2013-04-02 16:21:18 +08:00
source=(http://downloads.sourceforge.net/project/flare-game/$pkgname-$pkgver.tar.gz)
md5sums=('4775a845694798f7df8b60b1303b8c37')
2011-03-08 23:11:26 +08:00
build() {
2013-04-02 16:21:18 +08:00
cd $srcdir/$pkgname-$pkgver
2011-03-08 23:11:26 +08:00
2012-01-03 00:46:58 +08:00
# 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 \
2012-01-03 00:46:58 +08:00
-DCMAKE_BUILD_TYPE=Release \
-DBINDIR=bin \
-DDATADIR=share/$pkgname \
..
make
2011-03-08 23:11:26 +08:00
}
package() {
2013-04-02 16:21:18 +08:00
cd $srcdir/$pkgname-$pkgver/build
2012-01-03 00:46:58 +08:00
make DESTDIR=$pkgdir install
# Documentation.
2012-07-14 23:52:54 +08:00
install -Dm644 ../README $pkgdir/usr/share/doc/$pkgname/readme.txt
2011-03-08 23:11:26 +08:00
}
2013-04-02 16:21:18 +08:00