blob: 8f453bdc297c311ba36ed95729735a760e150c9d (
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
|
# Maintainer: gileri <twiked at gmail d(0)t com>
pkgname=libosmium-git
pkgver=2.18.0.r0.g9c50fde4
pkgrel=1
pkgdesc="Fast and flexible C++ library for working with OpenStreetMap data."
url="http://osmcode.org/libosmium/"
arch=('x86_64' 'i686')
license=('custom')
depends=('expat' 'zlib' 'bzip2' 'boost')
makedepends=('git' 'cmake' 'protozero')
optdepends=('sparsehash: sparse-mem-table index map'
'gdal: convert OSM geometries into OGR geometries'
'geos: convert OSM geometries into GEOS geometries'
'proj: project OSM coordinates into spatial reference systems'
'lz4: use LZ4 compression in PBF files'
'doxygen: build Libosmium API documentation')
conflicts=('libosmium')
provides=("libosmium=${pkgver}")
source=('libosmium::git+https://github.com/osmcode/libosmium.git')
md5sums=('SKIP')
pkgver() {
cd libosmium
git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
mkdir "${srcdir}"/libosmium/build
cd libosmium/build
cmake \
-DINSTALL_GDALCPP=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
..
make
}
package() {
cd "${srcdir}/libosmium/build"
make DESTDIR="${pkgdir}" install
install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|