blob: 189fd9072c8e275e158ea4d3bb0dc9f5cd257c76 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=fd
pkgver=8.0.0
pkgrel=0
pkgdesc="Simple, fast, user-friendly alternative to find"
url="https://github.com/sharkdp/fd"
arch="x86_64 armv7 armhf !aarch64 x86 ppc64le" # Cargo (aarch64 due to MAP_32BIT)
license="MIT Apache-2.0"
makedepends="cargo"
checkdepends="coreutils"
options="net"
subpackages="
$pkgname-doc
$pkgname-bash-completion
$pkgname-zsh-completion
$pkgname-fish-completion
"
source="$pkgname-$pkgver.tar.gz::https://github.com/sharkdp/fd/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 "$pkgdir"/usr/.crates2.json
install -Dm644 doc/fd.1 "$pkgdir"/usr/share/man/man1/fd.1
find "$builddir"/target/release/build/fd-find-* -type f -iname fd.bash \
-exec install -Dm644 '{}' "$pkgdir"/usr/share/bash-completion/completions/fd \;
find "$builddir"/target/release/build/fd-find-* -type f -iname _fd \
-exec install -Dm644 '{}' "$pkgdir"/usr/share/zsh/site-functions/_fd \;
find "$builddir"/target/release/build/fd-find-* -type f -iname fd.fish \
-exec install -Dm644 '{}' "$pkgdir"/usr/share/fish/completions/fd.fish \;
}
sha512sums="01f7caee8edd7ce45bdcc041dd39b4adc58d89750ea7de624911b0a64a303269f588356a4ffe64f27fe04527970b7eef1e4f31f6c4f36eec349af6df9ce74800 fd-8.0.0.tar.gz"
|