Skip to content

Commit

Permalink
Add icu_ext (#531)
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Stanton <[email protected]>
  • Loading branch information
EvanHStanton and Evan Stanton authored Nov 30, 2023
1 parent 4b2970e commit 963fdd8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
15 changes: 15 additions & 0 deletions contrib/icu_ext/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Set PostgreSQL version
ARG PG_VERSION=15
FROM quay.io/coredb/c-builder:pg${PG_VERSION}
USER root

# Clone repository
RUN git clone https://github.com/dverite/icu_ext.git

ARG RELEASE=v1.8.0

# Build extension
RUN cd icu_ext && \
git fetch origin ${RELEASE} && \
git checkout ${RELEASE} && \
make
18 changes: 18 additions & 0 deletions contrib/icu_ext/Trunk.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[extension]
name = "icu_ext"
version = "1.8.0"
repository = "https://github.com/dverite/icu_ext"
license = "PostgreSQL"
description = "Access ICU functions."
categories = ["data_transformations"]

[build]
postgres_version = "15"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd icu_ext && 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 963fdd8

Please sign in to comment.