oapi

LOW
maintainer lloydzhou 0 votes scanned 2026-09-12 11:11:46.143552
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: Lloyd <lloydzhou@qq.com>
2
3pkgname=oapi
4pkgver=0.1.2
5pkgrel=1
6pkgdesc="OpenAPI command-line client written in Rust"
7arch=('x86_64' 'aarch64')
8url="https://github.com/lloydzhou/oapi"
9license=('MIT')
10depends=('ca-certificates')
11makedepends=('cargo')
12# makepkg's -flto in CFLAGS turns ring's C objects into LTO bitcode that
13# rust-lld cannot link against (undefined ring_core_* symbols)
14options=('!lto')
15provides=('oapi')
16conflicts=('oapi-bin')
17source=("$pkgname-$pkgver.tar.gz::https://github.com/lloydzhou/oapi/archive/refs/tags/v$pkgver.tar.gz")
18sha256sums=('70e09d82700d5b90b1c8bc5f70112ae8d17cfea94249e1ac2faf233e1b1b11cc')
19
20prepare() {
21 cd "$pkgname-$pkgver"
22 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
23}
24
25build() {
26 cd "$pkgname-$pkgver"
27 # ring 0.17 static lib is incompatible with fat LTO on rust-lld (default since rustc ~1.91)
28 export CARGO_PROFILE_RELEASE_LTO=false
29 cargo build --frozen --release
30}
31
32package() {
33 cd "$pkgname-$pkgver"
34 install -Dm755 target/release/oapi "$pkgdir/usr/bin/oapi"
35 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
36}
37

Scan history

Scanned at (UTC)SeverityRules
2026-09-12 11:11:46 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