summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c603475f41457c273493bdec24ca55861d609b15 (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
# Maintainer: Antoine Bolvy <antoine.bolvy@gmail.com> -- 2020-04-21
# Maintainer: Robert Schadek <rburners@gmail.com> 2020-04-21 --

pkgname="libpostal-git"
pkgrel=1
pkgver=v1.1.alpha.r31.g790e24bc
pkgdesc="A C library for parsing/normalizing street addresses around the world. Powered by statistical NLP and open geo data. (git version)"
arch=("any")
url="https://github.com/openvenues/${pkgname%-git}"
license=('MIT')
makedepends=('git')
depends=('curl' 'snappy' 'automake' 'autoconf')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/openvenues/${pkgname%-git}")
md5sums=('SKIP')
install="${pkgname}.install"

pkgver() {
    cd "${pkgname%-git}"
    git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "${pkgname%-git}"
    ./bootstrap.sh
    ./configure --disable-data-download --prefix=/usr --datadir=/usr/local/share
    make
}

package() {
    ls -r
    make -C "${pkgname%-git}" DESTDIR="${pkgdir}" install
}