libbz2-rs-sys-git
LOW
maintainer Chocobo1
0 votes
scanned 2026-09-01 15:48:43.798595
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
3
pkgname=libbz2-rs-sys-git
4
pkgver=0.2.5.r1.g1028131
5
pkgrel=1
6
pkgdesc="An implementation of bzip2 in pure rust available as a C dynamic library"
7
arch=('i686' 'x86_64')
8
url="https://github.com/trifectatechfoundation/libbzip2-rs"
9
license=('bzip2-1.0.6')
10
makedepends=('git' 'cargo' 'cargo-c')
11
provides=("libbz2-rs-sys=$pkgver")
12
conflicts=('libbz2-rs-sys')
13
options=('staticlibs')
14
source=("git+https://github.com/trifectatechfoundation/libbzip2-rs.git")
15
sha256sums=('SKIP')
16
17
18
prepare() {
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
27
pkgver() {
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
37
check() {
38
cd "libbzip2-rs/libbz2-rs-sys-cdylib"
39
40
#cargo test \
41
# --frozen
42
}
43
44
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-09-01 15:48:43 | Low | 1 |