[arch-commits] Commit in cargo-audit/repos/community-x86_64 (PKGBUILD PKGBUILD)
Kpcyrd
kpcyrd at gemini.archlinux.org
Mon May 23 17:36:37 UTC 2022
Date: Monday, May 23, 2022 @ 17:36:36
Author: kpcyrd
Revision: 1210132
archrelease: copy trunk to community-x86_64
Added:
cargo-audit/repos/community-x86_64/PKGBUILD
(from rev 1210131, cargo-audit/trunk/PKGBUILD)
Deleted:
cargo-audit/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 69 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 38 insertions(+), 31 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-05-23 17:36:19 UTC (rev 1210131)
+++ PKGBUILD 2022-05-23 17:36:36 UTC (rev 1210132)
@@ -1,31 +0,0 @@
-# Maintainer: kpcyrd <git at rxv.cc>
-
-pkgname=cargo-audit
-pkgver=0.16.0
-pkgrel=1
-pkgdesc="Audit Cargo.lock for crates with security vulnerabilities"
-url="https://github.com/RustSec/cargo-audit"
-depends=('cargo')
-arch=('x86_64')
-license=('MIT' 'APACHE')
-source=("https://github.com/RustSec/rustsec/archive/${pkgname}/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('f0370c87c7a7976387303c7b5cc06651979968358b4f4dc867d30d65fab4d323')
-b2sums=('95b71e78b689e3fa19ba38b4ee427cf231e320fdfa9070a1a19932a29fe5502c647b8dee4c713a1b11822a3871e58e1566246b279e02b5124bea9b36ba58b89d')
-
-build() {
- cd rustsec-${pkgname}-v${pkgver}/${pkgname}
- cargo build --release --locked
-}
-
-check() {
- cd rustsec-${pkgname}-v${pkgver}/${pkgname}
- cargo test --release --locked
-}
-
-package() {
- cd rustsec-${pkgname}-v${pkgver}
- install -Dm755 target/release/${pkgname} -t "${pkgdir}"/usr/bin
- install -Dm644 ${pkgname}/LICENSE-MIT -t "${pkgdir}"/usr/share/licenses/${pkgname}
-}
-
-# vim: ts=2 sw=2 et:
Copied: cargo-audit/repos/community-x86_64/PKGBUILD (from rev 1210131, cargo-audit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-05-23 17:36:36 UTC (rev 1210132)
@@ -0,0 +1,38 @@
+# Maintainer: kpcyrd <git at rxv.cc>
+
+pkgname=cargo-audit
+pkgver=0.17.0
+pkgrel=1
+pkgdesc="Audit Cargo.lock for crates with security vulnerabilities"
+url="https://github.com/RustSec/cargo-audit"
+depends=('cargo')
+arch=('x86_64')
+license=('MIT' 'APACHE')
+options=(!lto)
+source=("https://github.com/RustSec/rustsec/archive/${pkgname}/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('18fc40de40b95adc55e4c4e767f969d62f60bba23805ea9455dd12c1c19f01c0')
+b2sums=('1dce9dcc94c75e1df9f8d955c4f86bb08905e18de6eb875f6a4380ed55190874e512b89aa507350ee2d87ca93b05848ec07524168ff34819ce21cb7016b7ff50')
+
+prepare() {
+ cd rustsec-${pkgname}-v${pkgver}/${pkgname}
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+ cd rustsec-${pkgname}-v${pkgver}/${pkgname}
+ export RUSTUP_TOOLCHAIN=stable
+ export CARGO_TARGET_DIR=target
+ cargo build --release --locked
+}
+
+check() {
+ cd rustsec-${pkgname}-v${pkgver}/${pkgname}
+ export RUSTUP_TOOLCHAIN=stable
+ cargo test --release --locked
+}
+
+package() {
+ cd rustsec-${pkgname}-v${pkgver}/${pkgname}
+ install -Dm755 target/release/${pkgname} -t "${pkgdir}"/usr/bin
+ install -Dm644 LICENSE-MIT -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}
More information about the arch-commits
mailing list