aboutsummaryrefslogtreecommitdiffstats
path: root/testing/exa/APKBUILD
blob: 344e7f62c13af6c073695f7f77d62404f8efb978 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=exa
pkgver=0.8.0
pkgrel=0
pkgdesc="ls replacement written in Rust"
url="https://the.exa.website/"
options="!check" # Tests fail on drone-ci
arch="x86_64" # Limited by cargo
license="MIT"
makedepends="cargo cmake"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ogham/exa/archive/v$pkgver.tar.gz"

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="5ac142f40af8408e03e7fa7b204216182ad696e44c1d044bd73d04957a638a8ed7295c15fc49279165b5dfb2d8b6a559847930de0e267f479cdab88fe9c49beb  exa-0.8.0.tar.gz"