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-10-01 06:23:45 +08:00
_pkgname=flare-game
2015-03-07 17:19:29 +08:00
_shared_name=${pkgname}
pkgver=0.19
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/"
2015-03-07 17:19:29 +08:00
license=('CCPL-by-sa')
depends=('flare-engine')
makedepends=('cmake')
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
2015-03-07 17:19:29 +08:00
source=(http://downloads.sourceforge.net/project/flare-game/Linux/${_pkgname}.$pkgver.tar.gz)
md5sums=('0d2950b8f6facc640a019aecd3a1fdb8')
2011-03-08 23:11:26 +08:00
build() {
2015-03-07 17:19:29 +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.
2015-03-07 17:19:29 +08:00
mkdir -p build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
2012-01-03 00:46:58 +08:00
-DCMAKE_BUILD_TYPE=Release \
-DBINDIR=bin \
2015-03-07 17:19:29 +08:00
-DDATADIR=share/${_shared_name} \
2012-01-03 00:46:58 +08:00
..
make
2011-03-08 23:11:26 +08:00
}
package() {
2015-03-07 17:19:29 +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
}