onon-git
LOW
maintainer Aethar
1 votes
scanned 2026-11-01 20:01:18.389276
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: Aethar <elliott.ashby88@gmail.com>
2
3
pkgname=onon-git
4
_pkgname=onon
5
pkgver=0.9.4.r0.g49e499b
6
pkgrel=2
7
pkgdesc="A quiet reader for the keyboard, built on MuPDF and configured with Lua"
8
arch=('x86_64')
9
url="https://github.com/Aethar01/onon"
10
license=('AGPL-3.0-only')
11
depends=('sdl3' 'libmupdf' 'gtk3')
12
makedepends=('go' 'git' 'pkgconf')
13
provides=("$_pkgname")
14
conflicts=("$_pkgname")
15
replaces=('gopdf-git')
16
source=("$_pkgname::git+$url.git")
17
sha256sums=('SKIP')
18
19
pkgver() {
20
cd "$_pkgname"
21
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
22
}
23
24
prepare() {
25
cd "$_pkgname"
26
export GOPATH="$srcdir/gopath"
27
export GOFLAGS="-modcacherw"
28
go mod download -x
29
}
30
31
build() {
32
cd "$_pkgname"
33
export GOPATH="$srcdir/gopath"
34
export CGO_CPPFLAGS="$CPPFLAGS"
35
export CGO_CFLAGS="$CFLAGS"
36
export CGO_CXXFLAGS="$CXXFLAGS"
37
export CGO_LDFLAGS="$LDFLAGS"
38
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
39
go build -ldflags "-linkmode=external -X onon/internal/config.Version=$pkgver" -o onon .
40
}
41
42
package() {
43
cd "$_pkgname"
44
install -Dm755 onon "$pkgdir/usr/bin/onon"
45
install -Dm644 onon.desktop "$pkgdir/usr/share/applications/onon.desktop"
46
install -Dm644 assets/onon.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/onon.svg"
47
install -Dm644 assets/onon.png "$pkgdir/usr/share/icons/hicolor/256x256/apps/onon.png"
48
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
49
}
50
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 20:01:18 | Low | 1 |
| 2026-10-23 00:02:19 | Clean | 2 |
| 2026-10-22 19:36:04 | Low | 1 |