oapi
LOW
maintainer lloydzhou
0 votes
scanned 2026-09-12 11:11:46.143552
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
3
pkgname=oapi
4
pkgver=0.1.2
5
pkgrel=1
6
pkgdesc="OpenAPI command-line client written in Rust"
7
arch=('x86_64' 'aarch64')
8
url="https://github.com/lloydzhou/oapi"
9
license=('MIT')
10
depends=('ca-certificates')
11
makedepends=('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)
14
options=('!lto')
15
provides=('oapi')
16
conflicts=('oapi-bin')
17
source=("$pkgname-$pkgver.tar.gz::https://github.com/lloydzhou/oapi/archive/refs/tags/v$pkgver.tar.gz")
18
sha256sums=('70e09d82700d5b90b1c8bc5f70112ae8d17cfea94249e1ac2faf233e1b1b11cc')
19
20
prepare() {
21
cd "$pkgname-$pkgver"
22
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
23
}
24
25
build() {
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
32
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-09-12 11:11:46 | Low | 1 |