summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4cbf8732c4abbc92f0d02844e24ea0af178151b5 (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
55
# Maintainer: Samuel Mesa <samuelmesa at linuxmail.org>

pkgname='tempus-framework'
_pkgname=Tempus
pkgver=2.6.2
pkgrel=1
pkgdesc="Tempus is a C++ framework which offers generic graph manipulation abilities in order to develop multimodal path planning requests (Core)"
arch=(i686 x86_64)
url="http://ifsttar.github.io/Tempus/"
license=('GNU LGPLv2+')
depends=('gdal' 'boost' 'postgresql' 'openmp' 'fcgi' 'libxml2' 'python-pyqt5')
makedepends=('cmake' 'git')
optdepends=('qgis')
provides=()
conflicts=()
replaces=()
options=('!buildflags' '!makeflags')
source=("${_pkgname}::git://github.com/Ifsttar/Tempus.git#tag=v${pkgver}"
        "fix-pthread-fastcgi.patch")
md5sums=('SKIP'
         'd56421e9ac5a0be4b6bca99247708c59')  

prepare() {
  cd $_pkgname
  
  git submodule init && git submodule update   

  patch -Np0 < ../fix-pthread-fastcgi.patch
}

build() {     
  cd ${srcdir}/${_pkgname}/tempus_core/
  [[ -d build ]] || mkdir build
  cd build

  cmake -G "Unix Makefiles" ../ \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DBUILD_CORE=TRUE \
    -DBUILD_DOC=TRUE \
    -DBUILD_TOOLS=TRUE \
    -DBUILD_TEMPUS_PLUGINS=TRUE

  make
}

package() {
  cd ${srcdir}/${_pkgname}/tempus_core/build

  make DESTDIR="$pkgdir" install

  install -d -m 0755 "$pkgdir/usr/share/tempus/test_data/"
  for file in ../test_data/*; do 
    install -m 0644 $file "$pkgdir/usr/share/tempus/test_data/$file"
  done
}