summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2dd46d74938988b42267ace092ebde1ab4d5bcb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: dorkster <jajdorkster@gmail.com>

pkgname=flare-game-git
pkgver=v1.05.r0.gf49d8139
pkgrel=1
pkgdesc="Fantasy action RPG using the FLARE engine - Git version"
url="http://www.flarerpg.org/"
license=('GPL3' 'CC-BY-SA-3.0')
arch=('i686' 'x86_64')
makedepends=('git>=1.7.10-1' 'cmake')
depends=('flare-engine-git')
conflicts=('flare-game')
replaces=('flare-game')
source=("git://github.com/clintbellanger/flare-game.git")
sha1sums=('SKIP')

pkgver() {
    cd $srcdir/flare-game
    git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd $srcdir/flare-game

	msg "Running cmake..."
	cmake -DCMAKE_INSTALL_PREFIX=/usr -DDATADIR=share/flare
	msg "Compiling..."
	make
}

package() {
	cd $srcdir/flare-game
	msg "Installing..."
	make install DESTDIR=$pkgdir
}