cargo-shear-git

LOW
maintainer ilovemikael 0 votes scanned 2026-10-30 03:55:04.906523
View on AUR
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
6pkgname=cargo-shear-git
7pkgver=1.14.0.r10.gc33ee7b
8pkgrel=1
9pkgdesc="Remove unused dependencies in a Rust project"
10arch=('x86_64')
11url="https://github.com/Boshen/cargo-shear"
12license=('MIT')
13depends=('cargo')
14source=("git+$url")
15provides=("$_pkgname")
16conflicts=("$_pkgname")
17b2sums=('SKIP')
18
19pkgver() {
20 git -C $_pkgname describe --long --tags | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
21}
22
23build() {
24 cd "$_pkgname"
25 cargo build --release
26}
27
28check() {
29 cd "$_pkgname"
30 cargo test --release -- --skip expand_cfg_test_dev_dep_via_macro
31}
32
33package() {
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)SeverityRules
2026-10-30 03:55:04 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion