Skip to content

Commit

Permalink
user/pastel: new package
Browse files Browse the repository at this point in the history
  • Loading branch information
ttyyls committed Sep 25, 2024
1 parent bcd4122 commit 4da8436
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(f"pastel")

Check failure on line 24 in user/pastel/template.py

View workflow job for this annotation

GitHub Actions / Lint tree and check format

Ruff (F541)

user/pastel/template.py:24:26: F541 f-string without any placeholders
self.install_completion("completions/pastel.bash", "bash")
self.install_completion("completions/_pastel", "zsh")
self.install_completion("completions/pastel.fish", "fish")

0 comments on commit 4da8436

Please sign in to comment.