summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b0f7d2eb0af403067ae68af089ea8c59827cf5b (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Maintainer: cassfalg <cassfalg-git@gmx.de>
# Contributor: Christian Bühler <christian@cbuehler.de>
# Contributor: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Elmo Todurov <todurov@gmail.com>
# Contributor: guini <sidtrun@googlemail.com>
# Contributor: Forrest Loomis <cybercyst _ at _ gmail dot com>
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: fana-m <geminin@gmx.net>

pkgname=freeorion-git
pkgver=r8845.a777581
pkgrel=1
pkgdesc="Free Clone of Master of Orion."
url="http://www.freeorion.org/index.php/Main_Page"
arch=('i686' 'x86_64')
license=('GPL')
depends=('boost' 'bullet' 'python2' 'sdl2' 'libvorbis' 'libogg' 'glew')
makedepends=('git' 'cmake')
provides=('freeorion')
conflicts=('freeorion')
install=freeorion.install
source=("freeorion.git::git+https://github.com/freeorion/freeorion.git#branch=master"
        freeorion.install
        getversion.py
        )
md5sums=('SKIP'
         'e88e49fbe0f638775f6be9bbc824e070'
         '5fdadcc589bc4887fcf1684923226867')


pkgver() {
  cd freeorion.git
  python ../getversion.py
}

prepare() {
  true #just to have a statement to execute...
#  cd "$srcdir/freeorion.git"
#  patch < ../../remove_oisinput.patch
}

build() {
  mkdir -p "$srcdir/FreeOrion-build"
  cd "$srcdir/FreeOrion-build"
  cmake -DCMAKE_INSTALL_PREFIX=/usr ../freeorion.git
  make
}

package() {
  cd "$srcdir/FreeOrion-build"
  make DESTDIR=$pkgdir install
}

# vim:set ts=2 sw=2 et: