Subject: [PATCH] testing/libpostal: new aport

From: Bart Ribbers <[email-masked]>
Date: Sat, 7 Sep 2019 21:44:51 +0200

---
 testing/libpostal/APKBUILD | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 testing/libpostal/APKBUILD

diff --git a/testing/libpostal/APKBUILD b/testing/libpostal/APKBUILD
new file mode 100644
index 0000000000..ff104dd2c3
--- /dev/null
+++ b/testing/libpostal/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Bart Ribbers <[email-masked]>
+# Maintainer: Bart Ribbers <[email-masked]>
+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"
+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() {
+	./configure \
+		--prefix=/usr \
+		--datadir=/usr/local/share \
+		--disable-data-download
+	make
+}
+
+check() {
+	make check
+}
+
+package() {
+	DESTDIR="$pkgdir" make install
+}
+
+sha512sums="90937c250cd2abc9af4924ca1636ae3b719f70be563e41762852f3140abcee04ed0804131cccc095b79ffb00837507ae0b91774abf4b4f854212a541dd1721a8  libpostal-1.0.0.tar.gz"
-- 
2.23.0