[arch-commits] Commit in cargo-audit/repos (2 files)

Frederik Schwan freswa at archlinux.org
Tue Apr 27 12:33:35 UTC 2021


    Date: Tuesday, April 27, 2021 @ 12:33:35
  Author: freswa
Revision: 924765

archrelease: copy trunk to community-testing-x86_64

Added:
  cargo-audit/repos/community-testing-x86_64/
  cargo-audit/repos/community-testing-x86_64/PKGBUILD
    (from rev 924764, cargo-audit/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: cargo-audit/repos/community-testing-x86_64/PKGBUILD (from rev 924764, cargo-audit/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-04-27 12:33:35 UTC (rev 924765)
@@ -0,0 +1,31 @@
+# Maintainer: kpcyrd <git at rxv.cc>
+
+pkgname=cargo-audit
+pkgver=0.14.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/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('bd2ecab6ff03fb11496cd0e7389273991b7d14d19bbdd76847126cb28079519e')
+b2sums=('afbfe22c1a3426bf986b1ceffa2e522ea98d8c4a09e7b5cf90028db1ab52adc62648cad6aa8f68cc4cc69a0f7e06628adca72589589d4440db61e7203f6b518a')
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  cargo build --release --locked
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+  cargo test --release --locked
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  install -Dm755 "target/release/${pkgname}" -t "${pkgdir}/usr/bin"
+  install -Dm644 LICENSE-MIT -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list