sway-session
LOW
maintainer marang
0 votes
scanned 2026-09-05 14:00:22.289320
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: marang <1550038+marang@users.noreply.github.com>
2
# Release template: the AUR workflow replaces sha256sums from the immutable
3
# pushed v0.1.0 tag before it verifies, builds, and publishes this package.
4
# The bootstrap checksum is replaced before publication; an unverified source
5
# must never reach the AUR.
6
pkgname=sway-session
7
pkgver=0.1.1
8
pkgrel=1
9
pkgdesc="Persistent work sessions for Sway"
10
arch=('x86_64' 'aarch64')
11
url="https://github.com/marang/sway-session"
12
license=('MIT')
13
depends=('sway')
14
makedepends=('go>=1.26.5')
15
options=('!debug')
16
source=("sway-session-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
17
sha256sums=('f57e530d2fe4589044831139a22abb9f1f0367dc9cf41532dbbc12fea83343f4')
18
19
_go_build_flags=(-buildmode=pie -trimpath -buildvcs=false -mod=readonly -modcacherw)
20
_go_ldflags=(-s -w -buildid=)
21
22
build() {
23
cd "sway-session-$pkgver"
24
export GOCACHE="$srcdir/go-build"
25
export GOMODCACHE="$srcdir/go-mod"
26
export GOTOOLCHAIN=local
27
28
CGO_ENABLED=0 go build "${_go_build_flags[@]}" -ldflags="${_go_ldflags[*]}" -o sway-session ./cmd/sway-session
29
}
30
31
check() {
32
cd "sway-session-$pkgver"
33
export GOCACHE="$srcdir/go-build"
34
export GOMODCACHE="$srcdir/go-mod"
35
export GOTOOLCHAIN=local
36
37
CGO_ENABLED=0 go test "${_go_build_flags[@]}" -count=1 ./...
38
}
39
40
package() {
41
cd "sway-session-$pkgver"
42
install -Dm755 sway-session "$pkgdir/usr/bin/sway-session"
43
install -Dm644 contrib/completions/bash/sway-session "$pkgdir/usr/share/bash-completion/completions/sway-session"
44
install -Dm644 contrib/completions/zsh/_sway-session "$pkgdir/usr/share/zsh/site-functions/_sway-session"
45
install -Dm644 contrib/completions/fish/sway-session.fish "$pkgdir/usr/share/fish/vendor_completions.d/sway-session.fish"
46
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
47
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
48
install -Dm644 docs/sway-session-plan.md "$pkgdir/usr/share/doc/$pkgname/docs/sway-session-plan.md"
49
install -Dm644 docs/sway-session-verification.md "$pkgdir/usr/share/doc/$pkgname/docs/sway-session-verification.md"
50
install -Dm644 docs/releasing.md "$pkgdir/usr/share/doc/$pkgname/docs/releasing.md"
51
install -Dm644 docs/workflow_conventions.md "$pkgdir/usr/share/doc/$pkgname/docs/workflow_conventions.md"
52
install -Dm644 docs/adr/0001-sqlite-session-runtime-state.md "$pkgdir/usr/share/doc/$pkgname/docs/adr/0001-sqlite-session-runtime-state.md"
53
install -Dm644 contrib/sway/50-sway-session.conf "$pkgdir/usr/share/doc/$pkgname/50-sway-session.conf"
54
install -Dm644 contrib/herdr/config.toml "$pkgdir/usr/share/doc/$pkgname/contrib/herdr/config.toml"
55
install -Dm644 contrib/sway-session/config.toml "$pkgdir/usr/share/doc/$pkgname/contrib/sway-session/config.toml"
56
install -Dm644 contrib/codex/hooks-system.json "$pkgdir/usr/share/doc/$pkgname/contrib/codex/hooks.json"
57
install -Dm644 contrib/apparmor/codex-home-guard "$pkgdir/usr/share/doc/$pkgname/contrib/apparmor/codex-home-guard"
58
install -Dm755 scripts/verify-codex-boundary.sh "$pkgdir/usr/share/doc/$pkgname/scripts/verify-codex-boundary.sh"
59
}
60
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-05 14:00:22 | Low | 1 |