blob: a5532804df7afb87dab344cdd9b2e255e875b0e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Contributor: Joe Searle <joe@jsearle.net>
# Maintainer: Joe Searle <joe@jsearle.net>
pkgname=pastel
pkgver=0.9.0
pkgrel=0
pkgdesc="A command-line tool to generate, analyze, convert and manipulate colors"
url="https://github.com/sharkdp/pastel"
arch="all !s390x !riscv64" # rust/cargo
license="Apache-2.0"
makedepends="rust cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/sharkdp/pastel/archive/v$pkgver.tar.gz"
subpackages="
$pkgname-bash-completion
$pkgname-zsh-completion
$pkgname-fish-completion
"
options="net" # fetch crates
build() {
export SHELL_COMPLETIONS_DIR="$builddir/completions"
cargo build --release
}
check() {
cargo test
}
package() {
install -Dm755 "target/release/pastel" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "$builddir"/completions/pastel.bash \
"$pkgdir"/usr/share/bash-completion/completions/pastel
install -Dm644 "$builddir"/completions/_pastel \
"$pkgdir"/usr/share/zsh/site-functions/_pastel
install -Dm644 "$builddir"/completions/pastel.fish \
"$pkgdir"/usr/share/fish/completions/pastel.fish
}
sha512sums="
b1dc85062429ca8acda14bec88dcb6057643c1e999582c7e1595ca730312fc8164c558c7459e754cb934a0a1f53ccd8fc542a4ab28dfe05f2f023d223384c464 pastel-0.9.0.tar.gz
"
|