[arch-commits] Commit in cargo-udeps/repos (2 files)
David Runge
dvzrv at gemini.archlinux.org
Fri Feb 18 18:27:22 UTC 2022
Date: Friday, February 18, 2022 @ 18:27:21
Author: dvzrv
Revision: 1134064
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 1134063, cargo-udeps/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: cargo-udeps/repos/community-staging-x86_64/PKGBUILD (from rev 1134063, cargo-udeps/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-02-18 18:27:21 UTC (rev 1134064)
@@ -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.26
+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=('93e73b9e288deddd3ad4c920d1fd65c206c747fa8b1fe6e8f241aec584cd23c0')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ export LIBSSH2_SYS_USE_PKG_CONFIG=1
+ 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