cargo-shear-git
LOW
maintainer ilovemikael
0 votes
scanned 2026-10-30 03:55:04.906523
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# PKGBUILD forked from https://aur.archlinux.org/packages/cargo-shear by:
2
# Maintainer: Cody Wyatt Neiman (xangelix) <neiman@cody.to>
3
4
# Maintainer: ilovemikael <itsmeguys2247 at gmail dot com>
5
_pkgname=cargo-shear
6
pkgname=cargo-shear-git
7
pkgver=1.14.0.r10.gc33ee7b
8
pkgrel=1
9
pkgdesc="Remove unused dependencies in a Rust project"
10
arch=('x86_64')
11
url="https://github.com/Boshen/cargo-shear"
12
license=('MIT')
13
depends=('cargo')
14
source=("git+$url")
15
provides=("$_pkgname")
16
conflicts=("$_pkgname")
17
b2sums=('SKIP')
18
19
pkgver() {
20
git -C $_pkgname describe --long --tags | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
21
}
22
23
build() {
24
cd "$_pkgname"
25
cargo build --release
26
}
27
28
check() {
29
cd "$_pkgname"
30
cargo test --release -- --skip expand_cfg_test_dev_dep_via_macro
31
}
32
33
package() {
34
cd "$_pkgname"
35
install -Dm 755 "target/release/$_pkgname" -t "$pkgdir/usr/bin"
36
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$_pkgname"
37
install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$_pkgname"
38
}
39
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-30 03:55:04 | Low | 1 |