diff options
author | msrd0.dev | 2024-04-08 12:53:24 +0000 |
---|---|---|
committer | msrd0.dev | 2024-04-08 12:53:24 +0000 |
commit | c05e0456ee2ebaa7dd389c2bb3cc91551663abd2 (patch) | |
tree | dad206634dfe0f74a8576cc8e3622cd6b9d89e28 | |
parent | 30303d8c3d62697ae2685af8c8a5b572c9d4b675 (diff) | |
download | aur-c05e0456ee2ebaa7dd389c2bb3cc91551663abd2.tar.gz |
auto-update cargo-duplicates 0.5.1
-rw-r--r-- | .index.json | 2 | ||||
-rw-r--r-- | PKGBUILD | 17 |
2 files changed, 13 insertions, 6 deletions
diff --git a/.index.json b/.index.json index dcdf1dfd367e..e5ad9226ea52 100644 --- a/.index.json +++ b/.index.json @@ -1,5 +1,5 @@ { - ".i": 1, + ".i": 2, "crate": "cargo-duplicates", "version": "0.5.1" }
\ No newline at end of file @@ -12,20 +12,27 @@ license=('MIT') depends=('gcc-libs' 'curl') makedepends=('cargo') -source=("$_crate-$pkgver.tar.gz::https://crates.io/api/v1/crates/cargo-duplicates/0.5.1/download") +source=("$_crate-0.5.1.tar.gz::https://crates.io/api/v1/crates/cargo-duplicates/0.5.1/download") sha512sums=('825414d3bcd19e728f6adab7689ee66697957ac4d0dd82b73012cb18ce79fd583d4857e7fe9644907cee577219091c594c2e506977ebf041700650eb4555ad8b') # Tier 1 architectures supported by Rust (https://doc.rust-lang.org/nightly/rustc/platform-support.html#tier-1) arch=('aarch64' 'i686' 'x86_64') prepare() { - cd "$srcdir/$_crate-$pkgver" + cd "$srcdir/$_crate-0.5.1" - cargo fetch --locked + export RUSTUP_TOOLCHAIN=stable + + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { - cd "$srcdir/$_crate-$pkgver" + cd "$srcdir/$_crate-0.5.1" + + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + CFLAGS+=" -ffat-lto-objects" + LIBSSH2_SYS_USE_PKG_CONFIG='1' \ cargo build \ --offline \ @@ -34,6 +41,6 @@ build() { } package() { - cd "$srcdir/$_crate-$pkgver" + cd "$srcdir/$_crate-0.5.1" install -Dm755 "target/release/cargo-duplicates" -t "$pkgdir/usr/bin" }
\ No newline at end of file |