diff options
author | Aleksandar Trifunovic | 2018-03-20 23:42:08 +0100 |
---|---|---|
committer | Aleksandar Trifunovic | 2018-03-20 23:42:08 +0100 |
commit | 666d3b30e5187e6e6592d7503320ca5e6077eeb6 (patch) | |
tree | 22885c64532efb69e756ecd40bca346d20ccc20e /PKGBUILD | |
download | aur-666d3b30e5187e6e6592d7503320ca5e6077eeb6.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..924aa52c8650 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Aleksandar Trifunović <akstrfn@gmail.com> + +pkgname=valhalla +pkgver=2.4.7 +pkgrel=1 +pkgdesc="Routing engine for OpenStreetMap." +arch=('x86_64') +url="https://github.com/valhalla/valhalla" +license=('custom:MIT') +depends=('prime_server' 'boost' 'protobuf' 'python' 'lua' 'libspatialite' 'rapidjson') +makedepends=('git' 'vim' 'jq') +source=("https://github.com/valhalla/valhalla/archive/$pkgver.tar.gz") +sha256sums=('f7a88191835626e77eeb6de30a6e1b72023abaaa9856e841a2e9423ee48221db') + +prepare() { + cd "$pkgname-$pkgver" + git clone --depth=1 https://github.com/scrosby/OSM-binary + git clone --depth=1 https://github.com/valhalla/osmlr-tile-spec OSMLR + # There is probably a better way to solve this. Sources: + # https://groups.google.com/forum/#!topic/spatialite-users/YXnofHixXsM + # https://github.com/valhalla/valhalla/issues/354 + sed -i 's/mod_spatialite/\/usr\/lib\/mod_spatialite/' src/mjolnir/admin.cc +} + +build() { + cd "$pkgname-$pkgver" + ./autogen.sh + ./configure --prefix=/usr + make +} + +check() { + cd "$pkgname-$pkgver" + make -k check +} + +package() { + cd "$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim: set softtabstop=2 shiftwidth=2 expandtab: |