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

Kpcyrd kpcyrd at archlinux.org
Sun Dec 8 22:18:39 UTC 2019


    Date: Sunday, December 8, 2019 @ 22:18:38
  Author: kpcyrd
Revision: 536356

archrelease: copy trunk to community-x86_64

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

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

Copied: cargo-audit/repos/community-x86_64/PKGBUILD (from rev 536355, cargo-audit/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2019-12-08 22:18:38 UTC (rev 536356)
@@ -0,0 +1,30 @@
+# Maintainer: kpcyrd <git at rxv.cc>
+
+pkgname=cargo-audit
+pkgver=0.10.0
+pkgrel=2
+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=('1f7b80d4748e71a8952fa8209c6384586a2e3b1a1065a3853da560a27a3f7991')
+
+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