summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e581289593002311c8d1049fbeed07eddfcd37b6 (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
# Maintainer: Glen D'souza <gdsouza@linuxmail.org>
# Contributor: jmf <jmf at mesecons dot net>
# Contributor: Pascal Groschwitz <p.groschwitz@googlemail.com>

pkgname=simgear-git
pkgver=20170102
pkgrel=1
_gitname=simgear
pkgdesc="A set of open-source libraries designed to be used as building blocks for quickly assembling 3d simulations, games, and visualization applications."
arch=('i686' 'x86_64')
url="http://simgear.sourceforge.net/"
license=('GPL')
depends=('glu' 'glut' 'freealut' 'plib' 'openscenegraph')
makedepends=('boost' 'cmake' 'mesa')
provides=('simgear-git' 'simgear')
conflicts=('simgear')
options=('staticlibs')
source=(git://git.code.sf.net/p/flightgear/simgear
        getKern.patch)
md5sums=('SKIP'
         'b4ab9878bbb07555d7fef68b592fb2de')

pkgver() {
  echo "$(date +"%Y%m%d")"
}

# To be used with OpenSceneGraph-git
# prepare() {
#   cd ${srcdir}
#   patch -p0 -i getKern.patch
# }

build() {
  cd ${srcdir}/${_gitname}
  git checkout next
  mkdir ${srcdir}/${_gitname}-build/
  cd "${srcdir}/${_gitname}-build/"
  cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
    -DCMAKE_BUILD_TYPE=Release \
    -DENABLE_DNS:BOOL="ON" \
    -DSIMGEAR_SHARED:BOOL="ON" \
    ../${_gitname}
  make || return 1
}

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