uutils-bsdutils-git

LOW
maintainer Chocobo1 0 votes scanned 2026-09-11 17:22:59.755085
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# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
2
3pkgname=uutils-bsdutils-git
4pkgver=0.0.1.r194.g3ba11da
5pkgrel=1
6pkgdesc="Rust reimplementation of the bsdutils project"
7arch=('i686' 'x86_64')
8url="https://github.com/uutils/bsdutils"
9license=('MIT')
10depends=('glibc' 'libgcc')
11makedepends=('git' 'cargo')
12provides=("uutils-bsdutils=$pkgver")
13conflicts=('uutils-bsdutils')
14source=("git+https://github.com/uutils/bsdutils.git")
15sha256sums=('SKIP')
16
17
18prepare() {
19 cd "bsdutils"
20
21 if [ ! -f "Cargo.lock" ]; then
22 cargo update
23 fi
24 cargo fetch
25}
26
27pkgver() {
28 cd "bsdutils"
29
30 _tag=$(git tag -l --sort -v:refname | grep -E '^v?[0-9\.]+$' | head -n1)
31 _rev=$(git rev-list --count "$_tag"..HEAD)
32 _hash=$(git rev-parse --short HEAD)
33 printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^v//'
34}
35
36check() {
37 cd "bsdutils"
38
39 #cargo test \
40 # --frozen
41}
42
43package() {
44 cd "bsdutils"
45
46 cargo install \
47 --frozen \
48 --no-track \
49 --root "$pkgdir/usr" \
50 --path .
51
52 for path in "$pkgdir/usr/bin"/*; do
53 dir=$(dirname "$path")
54 basename=$(basename "$path")
55 mv "$dir/$basename" "$dir/uutils-$basename"
56 done
57
58 install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/uutils-bsdutils"
59}
60

Scan history

Scanned at (UTC)SeverityRules
2026-09-11 17:22:59 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