Skip to content

Commit

Permalink
add address_standardizer_3
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHStanton committed Jul 13, 2023
1 parent 7e72de9 commit dae1ab4
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
28 changes: 28 additions & 0 deletions contrib/address_standardizer_3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
ARG PG_VERSION=15
FROM quay.io/coredb/c-builder:pg${PG_VERSION}
USER root

RUN apt-get update && apt-get install -y \
build-essential \
libreadline-dev \
zlib1g-dev \
flex \
bison \
libxml2-dev \
libxslt-dev \
libssl-dev \
libxml2-utils \
xsltproc \
ccache \
libgdal-dev \
libgeos-dev \
osm2pgsql \
libprotobuf-c-dev \
protobuf-c-compiler

RUN wget https://download.osgeo.org/postgis/source/postgis-3.3.3.tar.gz && \
tar xvf postgis-3.3.3.tar.gz && \
cd postgis-3.3.3 && \
./configure && \
cd extensions/address_standardizer && \
make
21 changes: 21 additions & 0 deletions contrib/address_standardizer_3/Trunk.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[extension]
name = "address_standardizer_3"
version = "3.3.3"
repository = "https://github.com/postgis/postgis"
license = "GPL-2.0"
description = "The address standardizer is a single line address parser that takes an input address and normalizes it based on a set of rules stored in a table and helper lex and gaz tables."
homepage = "http://postgis.net/"
documentation = "https://postgis.net/docs/Extras.html"
categories = ["data_transformations"]

[build]
postgres_version = "15"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd postgis-3.3.3/extensions/address_standardizer && make install
set -x
mv /usr/local/pgsql/share/extension/* /usr/share/postgresql/15/extension
mv /usr/local/pgsql/lib/* /usr/lib/postgresql/15/lib
"""

0 comments on commit dae1ab4

Please sign in to comment.