Skip to content

Commit

Permalink
user/pastel: new package
Browse files Browse the repository at this point in the history
  • Loading branch information
ttyyls authored and nekopsykose committed Sep 25, 2024
1 parent 44569d1 commit 2e5e155
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions user/pastel/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
pkgname = "pastel"
pkgver = "0.10.0"
pkgrel = 0
build_style = "cargo"
hostmakedepends = ["cargo-auditable"]
makedepends = ["rust-std"]
pkgdesc = "CLI tool to generate, analyze, convert and manipulate colors"
maintainer = "ttyyls <[email protected]>"
license = "Apache-2.0 OR MIT"
url = "https://github.com/sharkdp/pastel"
source = f"{url}/archive/refs/tags/v{pkgver}.tar.gz"
sha256 = "7848cd6d2ad8db6543b609dece7c9c28b4720c09fb13aeb204dd03d152159dd2"


def init_build(self):
self.make_build_env = {
"SHELL_COMPLETIONS_DIR": f"target/{self.profile().triplet}/release/completions"
}


def install(self):
self.install_license("LICENSE-MIT")
with self.pushd(f"target/{self.profile().triplet}/release"):
self.install_bin("pastel")
self.install_completion("completions/pastel.bash", "bash")
self.install_completion("completions/_pastel", "zsh")
self.install_completion("completions/pastel.fish", "fish")

0 comments on commit 2e5e155

Please sign in to comment.