diff options
Diffstat (limited to 'community/libpostal/APKBUILD')
-rw-r--r-- | community/libpostal/APKBUILD | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/community/libpostal/APKBUILD b/community/libpostal/APKBUILD index e30977063e9..9eb2b994f56 100644 --- a/community/libpostal/APKBUILD +++ b/community/libpostal/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Bart Ribbers <bribbers@disroot.org> pkgname=libpostal pkgver=1.1 -pkgrel=0 +pkgrel=1 pkgdesc="A C library for parsing/normalizing street addresses around the world. Powered by statistical NLP and open geo data" url="https://github.com/openvenues/libpostal" # riscv64 has relocation failures, https://github.com/openvenues/libpostal/issues/549 @@ -15,20 +15,29 @@ makedepends=" " checkdepends="libpostal-data" subpackages="$pkgname-dev" -source="https://github.com/openvenues/libpostal/archive/v$pkgver/libpostal-v$pkgver.tar.gz" +source="https://github.com/openvenues/libpostal/archive/refs/tags/v$pkgver/libpostal-v$pkgver.tar.gz" +# s390x has a test failure but we're unable to see the log case "$CARCH" in - x86*) _sse2="" ;; - *) _sse2="--disable-sse2" ;; +s390x) options="!check" ;; esac -# s390x and mips64 have a test failure but we're unable to see the log -case "$CARCH" in - s390x|mips64) options="!check" ;; - arm*) _scanner_flags="--with-cflags-scanner-extra=-marm" ;; -esac +prepare() { + default_prepare + + ./bootstrap.sh +} build() { + case "$CARCH" in + x86*) local sse2="" ;; + *) local sse2="--disable-sse2" ;; + esac + + case "$CARCH" in + arm*) local scanner_flags="--with-cflags-scanner-extra=-marm" ;; + esac + ./bootstrap.sh ./configure \ --build=$CBUILD \ @@ -37,8 +46,8 @@ build() { --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ - $_sse2 \ - $_scanner_flags \ + $sse2 \ + $scanner_flags \ --datadir=/usr/share \ --disable-data-download make |