: 1
name: psql

# Note: remember to update doc-url below!
#
version: 14.1.0+7
upstream-version: 14.1

project: postgresql
summary: PostgreSQL interactive terminal
license: PostgreSQL ; Permissive free software license.
topics: PostgreSQL, SQL, relational database
description-file: README
url: https://www.postgresql.org/
doc-url: https://www.postgresql.org/docs/14/app-psql.html
src-url: https://git.build2.org/cgit/packaging/postgresql/postgresql/tree/psql/
package-url: https://git.build2.org/cgit/packaging/postgresql/
email: pgsql-general@lists.postgresql.org ; Mailing list.
package-email: packaging@build2.org ; Mailing list.
build-error-email: builds@build2.org
builds: all relocatable
builds: -wasm
depends: * build2 >= 0.15.0
depends: * bpkg >= 0.15.0
depends: libpq == $
depends: libcrypto >= 1.1.1

# System package mapping.

# Note that versioning of the postgresql-client meta-package differs from that
# of the underlying implementation package (for example, postgresql-client
# 18+290ubuntu1 vs postgresql-client-18 18.3-1) and, if used, would require
# the package version mapping for each distribution version. Thus, we just map
# the package names per distribution versions.
#
debian_13-name: postgresql-client
debian_13-to-downstream-version: /(.*)/16.0.0/
debian_12-name: postgresql-client-15
debian_11-name: postgresql-client-13
ubuntu_26-name: postgresql-client-18
ubuntu_24-name: postgresql-client-16
ubuntu_22-name: postgresql-client-14

# Let's map the distribution package X.Y version to the bpkg package X.Y.0
# version.
#
debian-to-downstream-version: /(.*)/\1.0/
fedora-to-downstream-version: /(.*)/\1.0/
