libbz2-rs-sys-git

LOW
maintainer Chocobo1 0 votes scanned 2026-09-01 15:48:43.798595
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=libbz2-rs-sys-git
4pkgver=0.2.5.r1.g1028131
5pkgrel=1
6pkgdesc="An implementation of bzip2 in pure rust available as a C dynamic library"
7arch=('i686' 'x86_64')
8url="https://github.com/trifectatechfoundation/libbzip2-rs"
9license=('bzip2-1.0.6')
10makedepends=('git' 'cargo' 'cargo-c')
11provides=("libbz2-rs-sys=$pkgver")
12conflicts=('libbz2-rs-sys')
13options=('staticlibs')
14source=("git+https://github.com/trifectatechfoundation/libbzip2-rs.git")
15sha256sums=('SKIP')
16
17
18prepare() {
19 cd "libbzip2-rs/libbz2-rs-sys-cdylib"
20
21 if [ ! -f "Cargo.lock" ]; then
22 cargo update
23 fi
24 cargo fetch
25}
26
27pkgver() {
28 cd "libbzip2-rs/libbz2-rs-sys-cdylib"
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
36
37check() {
38 cd "libbzip2-rs/libbz2-rs-sys-cdylib"
39
40 #cargo test \
41 # --frozen
42}
43
44package() {
45 cd "libbzip2-rs/libbz2-rs-sys-cdylib"
46
47 cargo cinstall \
48 --locked \
49 --destdir "$pkgdir" \
50 --prefix "/usr"
51
52 install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/libbz2-rs-sys"
53}
54

Scan history

Scanned at (UTC)SeverityRules
2026-09-01 15:48:43 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