aboutsummaryrefslogtreecommitdiffstats
path: root/community/fd/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2021-12-23 18:20:19 +0100
committerJakub Jirutka <jakub@jirutka.cz>2021-12-23 18:22:04 +0100
commitd3483a1f4df7975a4d6f8d71bd4b18da61218090 (patch)
treeea8c0649ff484647666d7be4f268c579a1879990 /community/fd/APKBUILD
parent457630572d1548aa7bb6aee343c4ef3ad996b2e0 (diff)
downloadaports-d3483a1f4df7975a4d6f8d71bd4b18da61218090.tar.gz
aports-d3483a1f4df7975a4d6f8d71bd4b18da61218090.tar.bz2
aports-d3483a1f4df7975a4d6f8d71bd4b18da61218090.tar.xz
community/fd: fetch crates in prepare phase
Diffstat (limited to 'community/fd/APKBUILD')
-rw-r--r--community/fd/APKBUILD15
1 files changed, 11 insertions, 4 deletions
diff --git a/community/fd/APKBUILD b/community/fd/APKBUILD
index c54ebe35ee..926a0c0bb2 100644
--- a/community/fd/APKBUILD
+++ b/community/fd/APKBUILD
@@ -20,17 +20,24 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/sharkdp/fd/archive/v$pkgver.
minimize-size.patch
"
+prepare() {
+ default_prepare
+
+ cargo fetch --locked
+}
+
build() {
- cargo build --release --locked
+ cargo build --frozen --release
}
check() {
- cargo test --release --locked
+ cargo test --frozen
}
package() {
- cargo install --locked --path . --root="$pkgdir"/usr
- rm "$pkgdir"/usr/.crates.toml "$pkgdir"/usr/.crates2.json
+ cargo install --frozen --offline --path . --root="$pkgdir"/usr
+ rm "$pkgdir"/usr/.crates*
+
install -Dm644 doc/fd.1 "$pkgdir"/usr/share/man/man1/fd.1
find "$builddir"/target/release/build/fd-find-* -type f -iname fd.bash \