blob: 72a1b73c8c1772bf8513154657471fc46f7799e7 (
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
56
57
58
59
60
61
|
# Maintainer: Colin Reeder <colin@vpzom.click>
# Contributor: Aleksandar Trifunović <akstrfn@gmail.com>
_pkgname=valhalla
pkgname=$_pkgname
pkgver=3.5.1
pkgrel=1
pkgdesc="Routing engine for OpenStreetMap."
arch=('x86_64')
url="https://github.com/valhalla/valhalla"
license=('custom:MIT')
depends=('prime_server' 'boost-libs' 'protobuf' 'python' 'libspatialite' 'luajit' 'chrono-date' 'gdal')
makedepends=('cmake' 'git' 'vim' 'jq' 'boost')
source=("$_pkgname-$pkgver::git+${url}#tag=$pkgver")
sha256sums=('SKIP')
prepare() {
cd "$_pkgname-$pkgver"
git submodule update --init --recursive
cmake -S. -Bbuild \
-DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
-DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS:STRING="${LDFLAGS}" \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_DATA_TOOLS=On \
-DENABLE_PYTHON_BINDINGS=On \
-DENABLE_SERVICES=On \
-DENABLE_CCACHE=Off \
-DENABLE_HTTP=On \
-DENABLE_SINGLE_FILES_WERROR=Off \
-DENABLE_WERROR=Off \
-DBUILD_SHARED_LIBS=On \
-DENABLE_BENCHMARKS=OFF \
-DENABLE_TESTS=OFF
}
build() {
cd "$_pkgname-$pkgver/build"
make
}
# no tests built but ctest does not fail
check() {
cd "$_pkgname-$pkgver/build"
ctest --parallel `nproc`
}
package() {
cd "$_pkgname-$pkgver"
make -C build DESTDIR="$pkgdir/" install
rm -rf "$pkgdir/usr/share/doc/"{libvalhalla-dev,libvalhalla0,python-valhalla}
install -Dm644 COPYING README.md CHANGELOG.md -t "$pkgdir/usr/share/licenses/$_pkgname"
cp -a docs/* "$pkgdir/usr/share/doc/$_pkgname/"
}
# vim: set softtabstop=2 shiftwidth=2 expandtab:
|