# Template file for 'pg_top'
pkgname=pg_top
version=4.1.3
revision=1
build_style=cmake
hostmakedepends="python3-docutils"
makedepends="libbsd-devel ncurses-devel postgresql-libs-devel"
short_desc="'top' for PostgreSQL"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-3-Clause"
homepage="https://pg_top.gitlab.io/"
changelog="https://gitlab.com/pg_top/pg_top/-/raw/main/HISTORY.rst"
distfiles="https://gitlab.com/pg_top/pg_top/-/archive/v${version}/${pkgname}-v${version}.tar.gz"
checksum=2e1e9d8e7b085576d9609d2e3e333e7b212f24d7ebffff9131bb555ef396a65f

post_extract() {
	vsed -i 's/rst2man.py/rst2man/g' CMakeLists.txt
}

post_install() {
	vlicense LICENSE
}
