mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-04 23:42:07 +01:00
31 lines
914 B
Plaintext
31 lines
914 B
Plaintext
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: Leo <thinkabit.ukim@gmail.com>
|
|
pkgname=exa
|
|
pkgver=0.9.0
|
|
pkgrel=1
|
|
pkgdesc="ls replacement written in Rust"
|
|
url="https://the.exa.website/"
|
|
options="!check" # Tests fail on drone-ci
|
|
arch="x86_64 armv7 armhf aarch64 x86" # Limited by cargo
|
|
license="MIT"
|
|
makedepends="cargo zlib-dev libgit2-dev"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/ogham/exa/archive/v$pkgver.tar.gz"
|
|
|
|
export LIBGIT2_SYS_USE_PKG_CONFIG=1 # Use system libgit2
|
|
|
|
build() {
|
|
cargo build --release
|
|
}
|
|
|
|
check() {
|
|
cargo test --release
|
|
}
|
|
|
|
package() {
|
|
cargo install --path . --root="$pkgdir"/usr
|
|
rm "$pkgdir"/usr/.crates.toml
|
|
install -Dm644 contrib/man/exa.1 "$pkgdir"/usr/share/man/man1/exa.1
|
|
}
|
|
sha512sums="8689a115995f39ec60c9fc7c5a8f7b0b1009eb109b09c3bdcc4fc1a246637eaf60c6f37a1369578584323f18ba706812343e8ce67aa0ccfeaf3296b4eca4a714 exa-0.9.0.tar.gz"
|