desktop/flare/PKGBUILD

47 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-07-14 23:52:54 +08:00
pkgver=0.16
2012-01-03 00:46:58 +08:00
_developer=clintbellanger
2012-07-14 23:52:54 +08:00
_code=b3344302fd
2011-03-08 23:11:26 +08:00
pkgrel=1
pkgdesc="Action roleplaying game from an isometric perspective."
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
2012-01-03 00:46:58 +08:00
source=($pkgname-$pkgver.tar.gz::https://github.com/$_developer/$pkgname/tarball/v$pkgver)
2012-07-14 23:52:54 +08:00
md5sums=('c902e2149cb640cceb2e7d41ebdd6bcb')
2011-03-08 23:11:26 +08:00
build() {
2012-07-14 23:52:54 +08:00
cd $srcdir/$_developer-$pkgname-*
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() {
2012-07-14 23:52:54 +08:00
cd $srcdir/$_developer-$pkgname-*
cd 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
}