template.py 662 B

123456789101112131415161718192021
  1. pkgname = "thin-provisioning-tools"
  2. pkgver = "1.0.3"
  3. pkgrel = 0
  4. build_style = "cargo"
  5. hostmakedepends = ["cargo", "gmake", "gawk"]
  6. makedepends = ["rust"]
  7. pkgdesc = "Tools for manipulating the metadata of dm-thin targets"
  8. maintainer = "q66 <q66@chimera-linux.org>"
  9. license = "GPL-3.0-or-later"
  10. url = "https://github.com/jthornber/thin-provisioning-tools"
  11. source = f"{url}/archive/v{pkgver}.tar.gz"
  12. sha256 = "8c912be0f7a1cdc40f37fd4226a1794a91fa31667231d4e88338f32cf84b88b6"
  13. # too long
  14. options = ["!check"]
  15. def do_install(self):
  16. self.do(
  17. "gmake", "DESTDIR=" + str(self.chroot_destdir),
  18. "RUST_TARGET=" + self.profile().triplet, "install"
  19. )