pkgname = "doxygen"
pkgver = "1.9.6"
pkgrel = 0
build_style = "cmake"
hostmakedepends = ["cmake", "ninja", "perl", "python", "flex", "bison"]
checkdepends = ["libxml2-progs"]
pkgdesc = "Source code documentation generator tool"
maintainer = "q66 <q66@chimera-linux.org>"
license = "GPL-2.0-only"
url = "https://doxygen.nl"
source = f"{url}/files/{pkgname}-{pkgver}.src.tar.gz"
sha256 = "297f8ba484265ed3ebd3ff3fe7734eb349a77e4f95c8be52ed9977f51dea49df"
hardening = ["vis", "cfi"]

def post_extract(self):
    # needs texlive stuff
    self.rm("testing/012_cite.dox")

def post_install(self):
    self.install_man("doc/doxygen.1")
