template.py 736 B

123456789101112131415161718192021222324252627
  1. pkgname = "u-boot-menu"
  2. pkgver = "0.1"
  3. pkgrel = 0
  4. depends = ["base-kernel"]
  5. pkgdesc = "Common U-Boot boot menu generator for device targets"
  6. maintainer = "q66 <q66@chimera-linux.org>"
  7. license = "custom:meta"
  8. url = "https://chimera-linux.org"
  9. # no tests
  10. options = ["!check"]
  11. def do_install(self):
  12. # generator itself
  13. self.install_bin(
  14. self.files_path / "update-u-boot.sh", name = "update-u-boot"
  15. )
  16. # installer
  17. self.install_bin(
  18. self.files_path / "install-u-boot.sh", name = "install-u-boot"
  19. )
  20. # config file
  21. self.install_file(self.files_path / "u-boot", "etc/default")
  22. # kernel hook
  23. self.install_file(
  24. self.files_path / "99-gen-uboot.sh", "etc/kernel.d", mode = 0o755
  25. )