nirilayout
LOW
maintainer Piero-93
0 votes
scanned 2026-10-07 14:05:47.471701
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: Piero <biagini93@ik.me>
2
pkgname=nirilayout
3
pkgver=0.4.0
4
pkgrel=1
5
pkgdesc="Quickly switch niri output configuration between different layouts (GTK switcher)"
6
arch=('x86_64')
7
url="https://github.com/Piero-93/nirilayout"
8
license=('MIT')
9
depends=('gtk4' 'gtk4-layer-shell' 'glib2' 'cairo' 'pango' 'gdk-pixbuf2' 'graphene' 'glibc')
10
makedepends=('go' 'gettext' 'gobject-introspection')
11
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
12
sha256sums=('a48355c54e1e092632759594dc0dc919846ec0b867faaabf5d5f06196d733055')
13
14
prepare() {
15
cd "$pkgname-$pkgver"
16
go mod download
17
}
18
19
build() {
20
cd "$pkgname-$pkgver"
21
22
export CGO_ENABLED=1
23
export CGO_CPPFLAGS="${CPPFLAGS}"
24
export CGO_CFLAGS="${CFLAGS}"
25
export CGO_CXXFLAGS="${CXXFLAGS}"
26
export CGO_LDFLAGS="${LDFLAGS}"
27
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
28
29
# Recompile gettext catalogs (.po -> .mo) so the //go:embed picks up
30
# freshly built ones rather than trusting the committed artifacts.
31
for po in locales/*/LC_MESSAGES/*.po; do
32
msgfmt --check -o "${po%.po}.mo" "$po"
33
done
34
35
go build -o nirilayout ./cmd/nirilayout
36
}
37
38
check() {
39
cd "$pkgname-$pkgver"
40
go test ./...
41
}
42
43
package() {
44
cd "$pkgname-$pkgver"
45
install -Dm755 nirilayout "$pkgdir/usr/bin/nirilayout"
46
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
47
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
48
}
49
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-07 14:05:47 | Low | 1 |