mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 01:44:36 +02:00
56 lines
1.4 KiB
Text
56 lines
1.4 KiB
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=broot
|
|
pkgver=1.46.4
|
|
pkgrel=0
|
|
pkgdesc="New way to see and navigate directory trees"
|
|
url="https://github.com/Canop/broot"
|
|
# s390x: fails to build nix crate
|
|
arch="all !s390x"
|
|
license="MIT"
|
|
makedepends="
|
|
cargo
|
|
cargo-auditable
|
|
libgit2-dev
|
|
libxcb-dev
|
|
"
|
|
subpackages="
|
|
$pkgname-doc
|
|
$pkgname-bash-completion
|
|
$pkgname-fish-completion
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="https://github.com/Canop/broot/archive/v$pkgver/broot-$pkgver.tar.gz"
|
|
options="net" # fetch crates
|
|
|
|
export CARGO_PROFILE_RELEASE_OPT_LEVEL=2
|
|
export LIBGIT2_NO_VENDOR=1 # use system libgit2
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --locked --target="$CTARGET"
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --release --frozen
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -D -m755 target/release/broot -t "$pkgdir"/usr/bin/
|
|
install -D -m644 man/page "$pkgdir"/usr/share/man/man1/broot.1
|
|
|
|
cd "$(find target/release -name broot.bash -exec dirname {} \; -quit)"
|
|
|
|
install -D -m644 broot.bash "$pkgdir"/usr/share/bash-completion/completions/broot
|
|
install -D -m644 _broot -t "$pkgdir"/usr/share/zsh/site-functions/
|
|
install -D -m644 broot.fish -t "$pkgdir"/usr/share/fish/vendor_completions.d/
|
|
}
|
|
|
|
sha512sums="
|
|
e50e41a42ac5b6da6c806f15e9683fa1c8ee5f02376c4d943a33fc925135d4aa904c411399f94ff8998b3dfe99e61fd2499b50dc0e4e459f5512a0c8a9c0e51f broot-1.46.4.tar.gz
|
|
"
|