summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca60c2e7328074d51a79fe06b689f53adcc2a491 (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
# Maintainer: Simon Legner <Simon.Legner@gmail.com>
pkgname=libosmpbf-git
pkgver=1.4.0.r4.g8ab05ca
pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
pkgrel=2
pkgdesc="A library to support OpenStreetMap's protocolbuffer binary format (OSM PBF)"
arch=('i686' 'x86_64')
url="https://github.com/scrosby/OSM-binary"
license=('LGPL3')
depends=('protobuf')
makedepends=('git')
provides=('libosmpbf')
conflicts=('libosmpbf')
source=("$pkgname::git+https://github.com/scrosby/OSM-binary.git")
md5sums=('SKIP')

build() {
  cd "$pkgname/src"
  make
}

package() {
  cd "$pkgname/src"
  make PREFIX=/usr DESTDIR="$pkgdir/" install
}

# vim:set ts=2 sw=2 et: