mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
testing/otree: new aport
https://github.com/fioncat/otree View JSON/YAML/TOML objects in a TUI tree widget
This commit is contained in:
parent
e2ed56c49d
commit
d1a5e9f0a0
1 changed files with 39 additions and 0 deletions
39
testing/otree/APKBUILD
Normal file
39
testing/otree/APKBUILD
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||
maintainer="Celeste <cielesti@protonmail.com>"
|
||||
pkgname=otree
|
||||
pkgver=0.4.0
|
||||
pkgrel=0
|
||||
pkgdesc="View JSON/YAML/TOML objects in a TUI tree widget"
|
||||
url="https://github.com/fioncat/otree"
|
||||
arch="all"
|
||||
license="MIT"
|
||||
makedepends="cargo cargo-auditable"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://github.com/fioncat/otree/archive/refs/tags/v$pkgver/otree-$pkgver.tar.gz"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
|
||||
cargo fetch --target="$CHOST" --locked
|
||||
}
|
||||
|
||||
build() {
|
||||
cargo auditable build --frozen --release
|
||||
}
|
||||
|
||||
check() {
|
||||
cargo test --frozen
|
||||
}
|
||||
|
||||
package() {
|
||||
local targetdir="target/${CARGO_BUILD_TARGET:+$CARGO_BUILD_TARGET/}"
|
||||
|
||||
install -Dvm755 $targetdir/release/otree -t "$pkgdir"/usr/bin/
|
||||
|
||||
install -Dvm644 docs/actions.md -t "$pkgdir"/usr/share/doc/$pkgname/
|
||||
install -Dvm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
d5a4191a5c2f10d4e57feb9b989278d2ed41e1c334674a451e16144452aff71227b34291efc29dcf5d75e8d4a97414f56c9e261f2ca03296e7ffb8e7d3a2f451 otree-0.4.0.tar.gz
|
||||
"
|
Loading…
Add table
Add a link
Reference in a new issue