onon-git

LOW
maintainer Aethar 1 votes scanned 2026-11-01 20:01:18.389276
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: Aethar <elliott.ashby88@gmail.com>
2
3pkgname=onon-git
4_pkgname=onon
5pkgver=0.9.4.r0.g49e499b
6pkgrel=2
7pkgdesc="A quiet reader for the keyboard, built on MuPDF and configured with Lua"
8arch=('x86_64')
9url="https://github.com/Aethar01/onon"
10license=('AGPL-3.0-only')
11depends=('sdl3' 'libmupdf' 'gtk3')
12makedepends=('go' 'git' 'pkgconf')
13provides=("$_pkgname")
14conflicts=("$_pkgname")
15replaces=('gopdf-git')
16source=("$_pkgname::git+$url.git")
17sha256sums=('SKIP')
18
19pkgver() {
20 cd "$_pkgname"
21 git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
22}
23
24prepare() {
25 cd "$_pkgname"
26 export GOPATH="$srcdir/gopath"
27 export GOFLAGS="-modcacherw"
28 go mod download -x
29}
30
31build() {
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
42package() {
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)SeverityRules
2026-11-01 20:01:18 Low 1
2026-10-23 00:02:19 Clean 2
2026-10-22 19:36:04 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