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

Caleb Maclennan alerque at gemini.archlinux.org
Wed Aug 24 08:03:00 UTC 2022


    Date: Wednesday, August 24, 2022 @ 08:03:00
  Author: alerque
Revision: 1276088

archrelease: copy trunk to community-staging-x86_64

Added:
  cargo-udeps/repos/community-staging-x86_64/
  cargo-udeps/repos/community-staging-x86_64/PKGBUILD
    (from rev 1276087, cargo-udeps/trunk/PKGBUILD)

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

Copied: cargo-udeps/repos/community-staging-x86_64/PKGBUILD (from rev 1276087, cargo-udeps/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-08-24 08:03:00 UTC (rev 1276088)
@@ -0,0 +1,41 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+# Contributor: Vlad Frolov <frolvlad at gmail.com>
+
+pkgname=cargo-udeps
+pkgver=0.1.32
+pkgrel=2
+pkgdesc="Find unused dependencies in Cargo.toml"
+arch=('x86_64')
+url="https://github.com/est31/cargo-udeps"
+license=('MIT' 'Apache')
+depends=('curl' 'libgit2')
+makedepends=('cargo' 'libssh2')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('2ec9a861885a2ba3a523166636e08dd40116fdd870f088f84ca8d57949087e84')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  export LIBSSH2_SYS_USE_PKG_CONFIG=1
+  CFLAGS+=" -ffat-lto-objects"
+  cargo build --release --frozen
+}
+
+# Tests require rustup nightly
+#check() {
+#  cd "$pkgname-$pkgver"
+#  cargo test --release --locked
+#}
+
+package() {
+  cd "$pkgname-$pkgver"
+  install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
+  install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+  install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list