aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pastel
diff options
context:
space:
mode:
authorJoe Searle <joe@jsearle.net>2019-09-22 19:19:21 +0000
committerLeo <thinkabit.ukim@gmail.com>2019-09-22 23:45:33 -0300
commitbbf2581e6a6d3aa6e48c61ffb4013d76b3178049 (patch)
tree8dc28f96aced7ab9d9bea0e9386fe509a2245d1a /testing/pastel
parentee0b4ae6f36021a2c8c137a553b1ff877f534f19 (diff)
downloadaports-bbf2581e6a6d3aa6e48c61ffb4013d76b3178049.tar.bz2
aports-bbf2581e6a6d3aa6e48c61ffb4013d76b3178049.tar.xz
testing/pastel: new aport
Diffstat (limited to 'testing/pastel')
-rw-r--r--testing/pastel/APKBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/testing/pastel/APKBUILD b/testing/pastel/APKBUILD
new file mode 100644
index 0000000000..e15f495cc9
--- /dev/null
+++ b/testing/pastel/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: Joe Searle <joe@jsearle.net>
+# Maintainer: Joe Searle <joe@jsearle.net>
+pkgname=pastel
+pkgver=0.6.0
+pkgrel=0
+pkgdesc="A command-line tool to generate, analyze, convert and manipulate colors"
+url="https://github.com/sharkdp/pastel"
+# Test 'test_distinct_fixed_colors' fails on 32bit archs
+# Upstream report: https://github.com/sharkdp/pastel/issues/97
+arch="x86_64 aarch64"
+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:bashcomp $pkgname-zsh-completion:zshcomp $pkgname-fish-completion:fishcomp"
+
+build() {
+ export SHELL_COMPLETIONS_DIR="$builddir/completions"
+ cargo build --release
+}
+
+check() {
+ cargo test
+}
+
+package() {
+ install -Dm755 "target/release/pastel" "$pkgdir/usr/bin/$pkgname"
+}
+
+bashcomp() {
+ cd $builddir
+ pkgdesc="Bash completion for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
+ install -Dm644 completions/pastel.bash \
+ "$subpkgdir/usr/share/bash-completion/completions/pastel"
+}
+
+zshcomp() {
+ cd $builddir
+ pkgdesc="Zsh completion for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel zsh"
+ install -Dm644 completions/_pastel \
+ "$subpkgdir/usr/share/zsh/site-functions/_pastel"
+}
+
+fishcomp() {
+ cd $builddir
+ pkgdesc="Fish completion for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel zsh"
+ install -Dm644 completions/pastel.fish \
+ "$subpkgdir/usr/share/fish/vendor_completions.d/pastel.fish"
+}
+
+sha512sums="a5d3e579ee1ffff381a5918dbd0161f65e1b0c74efeeefb7905bf3cb7d4772dcb0c694c21c1ad67f2da166bb0d95f77a6adaedfebfa540fe6977200c54695140 pastel-0.6.0.tar.gz"