template.py 940 B

12345678910111213141516171819202122232425262728293031
  1. pkgname = "source-highlight"
  2. pkgver = "3.1.9"
  3. pkgrel = 0
  4. build_style = "gnu_configure"
  5. configure_args = ["--with-bash-completion=/usr/share/bash-completion/completions"]
  6. make_check_args = ["-j1"]
  7. hostmakedepends = ["pkgconf", "automake", "libtool"]
  8. makedepends = ["boost-devel"]
  9. pkgdesc = "Convert source code to syntax highlighted document"
  10. maintainer = "q66 <q66@chimera-linux.org>"
  11. license = "GPL-3.0-or-later"
  12. url = "http://www.gnu.org/software/src-highlite"
  13. source = f"$(GNU_SITE)/src-highlite/{pkgname}-{pkgver}.tar.gz"
  14. sha256 = "3a7fd28378cb5416f8de2c9e77196ec915145d44e30ff4e0ee8beb3fe6211c91"
  15. options = ["!cross"]
  16. # aarch64 libtool fix
  17. def pre_configure(self):
  18. self.do("autoreconf", "-if")
  19. def post_install(self):
  20. self.install_license("COPYING")
  21. @subpackage("source-highlight-libs")
  22. def _libs(self):
  23. return self.default_libs()
  24. @subpackage("source-highlight-devel")
  25. def _devel(self):
  26. return self.default_devel()