arxiv-cli-opt
LOW
maintainer Razgak
0 votes
scanned 2026-08-22 15:17:41.736085
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
# Code Author: Clelia Astra Bertelli
2
# Packager : Razgak
3
4
pkgname=arxiv-cli-opt
5
pkgver=1.0.0
6
pkgrel=1
7
pkgdesc='A Rust CLI to download papers from arXiv'
8
arch=('x86_64')
9
url='https://github.com/AstraBert/arxiv-cli'
10
license=('MIT')
11
depends=('gcc-libs' 'glibc')
12
makedepends=('cargo' 'cmake')
13
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
14
options=('!lto' '!debug')
15
sha256sums=('31c0d15787e9f8b0afb9e434136c600cf5999eee78da64c0f09357acae505ff4')
16
17
prepare() {
18
cd "$pkgname-$pkgver"
19
20
#if [ ! -f Cargo.lock ]; then
21
cargo generate-lockfile
22
#fi
23
24
export RUSTUP_TOOLCHAIN=stable
25
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
26
}
27
28
build() {
29
cd "$pkgname-$pkgver"
30
export RUSTUP_TOOLCHAIN=stable
31
export CARGO_TARGET_DIR=target
32
33
# Binary
34
export CARGO_PROFILE_RELEASE_LTO=fat
35
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
36
export CARGO_PROFILE_RELEASE_PANIC=abort
37
export CARGO_PROFILE_RELEASE_OPT_LEVEL=3
38
39
# Linker / CPU
40
cargo clean
41
RUSTFLAGS="${RUSTFLAGS} -C target-cpu=native -C link-arg=-Wl,-z,pack-relative-relocs" \
42
cargo build --frozen --release
43
}
44
45
check() {
46
cd "$pkgname-$pkgver"
47
export RUSTUP_TOOLCHAIN=stable
48
cargo test --frozen
49
}
50
51
package() {
52
cd "$pkgname-$pkgver"
53
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
54
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
55
}
56
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-22 15:17:41 | Low | 1 |