# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=libpostal pkgver=1.0.0 pkgrel=0 pkgdesc="A C library for parsing/normalizing street addresses around the world" url="https://github.com/openvenues/libpostal" arch="all !armv7" # /tmp/ccFggAdh.s:1377852: Error: conditional branch out of range license="MIT" makedepends="autoconf automake libtool" subpackages="$pkgname-static $pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/openvenues/libpostal/archive/v$pkgver.tar.gz" options="!check" # Requires 100GB of data prepare() { default_prepare ./bootstrap.sh } build() { case "$CARCH" in x86|x86_64) sse2="--enable-sse2" ;; *) sse2="--disable-sse2";; esac ./configure \ --prefix=/usr \ --datadir=/usr/local/share \ --disable-data-download \ $sse2 make } check() { make check } package() { DESTDIR="$pkgdir" make install } sha512sums="90937c250cd2abc9af4924ca1636ae3b719f70be563e41762852f3140abcee04ed0804131cccc095b79ffb00837507ae0b91774abf4b4f854212a541dd1721a8 libpostal-1.0.0.tar.gz"