diff --git a/testing/himalaya/APKBUILD b/testing/himalaya/APKBUILD new file mode 100644 index 0000000000000000000000000000000000000000..51e9d12300848bed82e1e72b00585e9916c6f759 --- /dev/null +++ b/testing/himalaya/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Michał Polański <michal@polanski.me> +# Maintainer: Michał Polański <michal@polanski.me> +pkgname=himalaya +pkgver=0.5.1 +pkgrel=0 +pkgdesc="CLI email client" +url="https://github.com/soywod/himalaya" +license="BSD-3-Clause" +arch="all !s390x !mips64 !riscv64" # blocked by rust/cargo +makedepends="cargo openssl-dev" +subpackages="$pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion" +source="https://github.com/soywod/himalaya/archive/v$pkgver/himalaya-$pkgver.tar.gz" + +build() { + cargo build --release --locked + + ./target/release/himalaya completion bash > $pkgname.bash + ./target/release/himalaya completion fish > $pkgname.fish + ./target/release/himalaya completion zsh > $pkgname.zsh +} + +check() { + cargo test --release --locked +} + +package() { + install -Dm755 target/release/himalaya "$pkgdir"/usr/bin/himalaya + + install -Dm644 $pkgname.bash "$pkgdir"/usr/share/bash-completion/completions/$pkgname + install -Dm644 $pkgname.fish "$pkgdir"/usr/share/fish/completions/$pkgname.fish + install -Dm644 $pkgname.zsh "$pkgdir"/usr/share/zsh/site-functions/_$pkgname +} + +sha512sums=" +8e45dff561d11ce7c3df9882d00345862dfca8ece112eb2134f59d9b3a550b3d06faa16697f451704d4f4fc56cb48783910de7fefb9f3a6e8d95fa9b6eb5cecc himalaya-0.5.1.tar.gz +"