[arch-commits] Commit in (4 files)

Orhun Parmaksiz orhun at gemini.archlinux.org
Mon Feb 28 14:17:56 UTC 2022


    Date: Monday, February 28, 2022 @ 14:17:56
  Author: orhun
Revision: 1138421

addpkg: cargo-deny 0.11.3-2

Added:
  cargo-deny/
  cargo-deny/repos/
  cargo-deny/trunk/
  cargo-deny/trunk/PKGBUILD

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

Added: cargo-deny/trunk/PKGBUILD
===================================================================
--- cargo-deny/trunk/PKGBUILD	                        (rev 0)
+++ cargo-deny/trunk/PKGBUILD	2022-02-28 14:17:56 UTC (rev 1138421)
@@ -0,0 +1,41 @@
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+# Contributor: Vlad Frolov <frolvlad at gmail.com>
+
+pkgname=cargo-deny
+pkgver=0.11.3
+pkgrel=2
+pkgdesc='Cargo plugin for linting your dependencies'
+arch=('x86_64')
+url='https://github.com/EmbarkStudios/cargo-deny'
+license=('MIT' 'APACHE')
+depends=('gcc-libs' 'zlib')
+makedepends=('cargo')
+options=(!lto)
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/EmbarkStudios/cargo-deny/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+b2sums=('d0f2514a46303371a69ea953ec6214a1ce5d918df256f18b81c66184b49073db16fdec85856cfa7d2e2cb3db68f7e241db82faff866748f8e762dc7d23882a04')
+
+prepare() {
+  cd cargo-deny-${pkgver}
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd cargo-deny-${pkgver}
+  export RUSTUP_TOOLCHAIN=stable
+  export CARGO_TARGET_DIR=target
+  cargo build --release --frozen
+}
+
+check() {
+  cd cargo-deny-${pkgver}
+  export RUSTUP_TOOLCHAIN=stable
+  cargo test --frozen
+}
+
+package() {
+  cd cargo-deny-${pkgver}
+  install -Dm755 target/release/cargo-deny -t "${pkgdir}"/usr/bin
+  install -Dm644 README.md -t "${pkgdir}"/usr/share/doc/${pkgname}
+  install -Dm644 LICENSE-MIT -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}



More information about the arch-commits mailing list