arxiv-cli-opt

LOW
maintainer Razgak 0 votes scanned 2026-08-22 15:17:41.736085
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# Code Author: Clelia Astra Bertelli
2# Packager : Razgak
3
4pkgname=arxiv-cli-opt
5pkgver=1.0.0
6pkgrel=1
7pkgdesc='A Rust CLI to download papers from arXiv'
8arch=('x86_64')
9url='https://github.com/AstraBert/arxiv-cli'
10license=('MIT')
11depends=('gcc-libs' 'glibc')
12makedepends=('cargo' 'cmake')
13source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
14options=('!lto' '!debug')
15sha256sums=('31c0d15787e9f8b0afb9e434136c600cf5999eee78da64c0f09357acae505ff4')
16
17prepare() {
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
28build() {
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
45check() {
46 cd "$pkgname-$pkgver"
47 export RUSTUP_TOOLCHAIN=stable
48 cargo test --frozen
49}
50
51package() {
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)SeverityRules
2026-08-22 15:17:41 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