# Template file for 'ctags'
pkgname=ctags
version=5.9.20221002.0
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config automake python3-docutils"
makedepends="jansson-devel libseccomp-devel libxml2-devel libyaml-devel
 pcre2-devel"
short_desc="Generates an index file of language objects found in source files"
maintainer="Jan S. <jan.schreib@gmail.com>"
license="GPL-2.0-only"
homepage="https://ctags.io/"
distfiles="https://github.com/universal-ctags/ctags/archive/p${version}.tar.gz"
checksum=d2b2b382f8035d4bdfb73a2f6995e85c744bc8121135e0f77060d2429ec459bd

pre_configure() {
	./autogen.sh
}

do_install() {
	make prefix=${DESTDIR}/usr bindir=${DESTDIR}/usr/bin mandir=${DESTDIR}/usr/share/man install
}
