blob: df822afde61e8c0e782b67ab8a0aa46e66d1c21a (
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
|
# Maintainer: Simon Legner <Simon.Legner@gmail.com>
pkgname=libosmium
pkgver=2.15.1
pkgrel=1
pkgdesc="Fast and flexible C++ library for working with OpenStreetMap data."
url="http://osmcode.org/libosmium/"
arch=('any')
license=('custom')
makedepends=('cmake')
depends=('expat' 'zlib' 'bzip2' 'boost' 'boost-libs' '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'
'doxygen: build Libosmium API documentation')
conflicts=('libosmium-git')
provides=('libosmium')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/osmcode/${pkgname}/archive/v${pkgver}.tar.gz")
build() {
mkdir -p "${srcdir}/${pkgname}-${pkgver}/build"
cd "${srcdir}/${pkgname}-${pkgver}/build"
cmake \
-DINSTALL_GDALCPP=ON \
-DINSTALL_PROTOZERO=ON \
-DINSTALL_UTFCPP=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
..
make
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}/build"
ctest
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}/build"
make DESTDIR="${pkgdir}" install
install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
sha256sums=('4c0fe0146aee20423d9526e88f205fe442257fdf26df19225e2bde6084bad0ef')
|