diff options
author | Orhun Parmaksız | 2024-03-16 20:31:38 +0300 |
---|---|---|
committer | Orhun Parmaksız | 2024-03-16 20:31:38 +0300 |
commit | 30c44a13c9f13f8d2e1f1289dcb5428db9fd5aa6 (patch) | |
tree | b1680f8ad8a4b2a9caadf1a770b29df4ae8ab8a7 /PKGBUILD | |
parent | 96d6d3ec2e094c81c9fe03ce422a6936afafc395 (diff) | |
download | aur-fclones.tar.gz |
upgpkg: fclones 0.34.0-2
follow Rust packaging guidelines
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -3,7 +3,7 @@ pkgname=fclones pkgver=0.34.0 -pkgrel=1 +pkgrel=2 pkgdesc="Efficient Duplicate File Finder" arch=('x86_64') url="https://github.com/pkolaczk/fclones" @@ -15,16 +15,20 @@ sha512sums=('ba0411eed18f5db2b696efd3d747666ab09d075493f11492754243f5304bd0b652f prepare() { cd "$pkgname-$pkgver" - cargo fetch --locked --target "$CARCH-unknown-linux-gnu" + export RUSTUP_TOOLCHAIN=stable + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } build() { cd "$pkgname-$pkgver" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target cargo build --frozen --release } check() { cd "$pkgname-$pkgver" + export RUSTUP_TOOLCHAIN=stable cargo test --frozen } |