# Copyright 2026 ReK2 - Chris F.N. <rek2@hispagatos.org>
# https://rek2.hispagatos.org
# Distributed under the terms of the GNU General Public License v3

EAPI=8

DESCRIPTION="Collect and display metrics from a running PostgreSQL server"
HOMEPAGE="https://github.com/rapidloop/pgmetrics"
SRC_URI="https://github.com/rapidloop/pgmetrics/releases/download/v${PV}/pgmetrics_${PV}_linux_amd64.tar.gz"
S="${WORKDIR}/pgmetrics_${PV}_linux_amd64"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"

BDEPEND="app-arch/tar"
QA_PREBUILT="*"

src_install() {
	newbin pgmetrics pgmetrics
	dodoc LICENSE README.md
}