histui-git
LOW
maintainer jmylchreest
0 votes
scanned 2026-11-04 16:07:14.930874
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: John Mylchreest <jmylchreest@gmail.com>
2
pkgname=histui-git
3
pkgver=0.0.14.r33.gade0a13
4
pkgrel=1
5
pkgdesc="Notification history browser and daemon for Linux desktops (latest Git main)"
6
arch=('x86_64' 'aarch64')
7
url="https://github.com/jmylchreest/histui"
8
license=('MIT')
9
depends=('gtk4' 'libadwaita' 'gtk4-layer-shell' 'alsa-lib' 'fontconfig')
10
makedepends=('go' 'git')
11
options=('!debug')
12
provides=("histui=${pkgver}" "histuid=${pkgver}")
13
conflicts=('histui' 'histui-bin')
14
source=("histui::git+https://github.com/jmylchreest/histui.git#branch=main")
15
sha256sums=('SKIP')
16
17
pkgver() {
18
cd "${srcdir}/histui"
19
# Only release tags: development tags must not make versions go backwards.
20
local _version
21
if _version=$(git describe --tags --long --match 'v[0-9]*' --exclude '*-*' 2>/dev/null); then
22
printf '%s\n' "${_version#v}" | sed 's/-\([0-9]*\)-g/.r\1.g/'
23
else
24
printf '0.r%s.g%s\n' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
25
fi
26
}
27
28
build() {
29
cd "${srcdir}/histui"
30
31
export CGO_ENABLED=0
32
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
33
34
local _commit="$(git rev-parse HEAD)"
35
local _buildtime="$(date -u -d "@$(git log -1 --format=%ct)" +%Y-%m-%dT%H:%M:%SZ)"
36
local _ldflags="-s -w -X main.version=${pkgver} -X main.commit=${_commit} -X main.buildTime=${_buildtime}"
37
38
# histui CLI - pure Go, no CGO needed
39
CGO_ENABLED=0 go build \
40
-ldflags "${_ldflags}" \
41
-o histui ./cmd/histui
42
43
# histuid daemon - CGO-free; GTK4/libadwaita are runtime dependencies
44
CGO_ENABLED=0 sh scripts/puregotk/go.sh build \
45
-ldflags "${_ldflags}" \
46
-o histuid ./cmd/histuid
47
48
# Shell completions - generated from the freshly built native binary
49
# so they always match the code being packaged.
50
mkdir -p completions
51
./histui completion bash > completions/histui.bash
52
./histui completion zsh > completions/_histui
53
./histui completion fish > completions/histui.fish
54
}
55
56
package() {
57
cd "${srcdir}/histui"
58
59
install -Dm755 histui "${pkgdir}/usr/bin/histui"
60
install -Dm755 histuid "${pkgdir}/usr/bin/histuid"
61
install -Dm644 contrib/histuid.service "${pkgdir}/usr/lib/systemd/user/histuid.service"
62
install -Dm644 contrib/histuid-monitor.service "${pkgdir}/usr/lib/systemd/user/histuid-monitor.service"
63
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
64
65
# Install example config
66
install -Dm644 docs/static/examples/histuid.toml "${pkgdir}/usr/share/doc/${pkgname}/histuid.toml.example"
67
68
# Shell completions
69
install -Dm644 completions/histui.bash "${pkgdir}/usr/share/bash-completion/completions/histui"
70
install -Dm644 completions/_histui "${pkgdir}/usr/share/zsh/site-functions/_histui"
71
install -Dm644 completions/histui.fish "${pkgdir}/usr/share/fish/vendor_completions.d/histui.fish"
72
}
73
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-04 16:07:14 | Low | 1 |