nirilayout

LOW
maintainer Piero-93 0 votes scanned 2026-10-07 14:05:47.471701
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: Piero <biagini93@ik.me>
2pkgname=nirilayout
3pkgver=0.4.0
4pkgrel=1
5pkgdesc="Quickly switch niri output configuration between different layouts (GTK switcher)"
6arch=('x86_64')
7url="https://github.com/Piero-93/nirilayout"
8license=('MIT')
9depends=('gtk4' 'gtk4-layer-shell' 'glib2' 'cairo' 'pango' 'gdk-pixbuf2' 'graphene' 'glibc')
10makedepends=('go' 'gettext' 'gobject-introspection')
11source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
12sha256sums=('a48355c54e1e092632759594dc0dc919846ec0b867faaabf5d5f06196d733055')
13
14prepare() {
15 cd "$pkgname-$pkgver"
16 go mod download
17}
18
19build() {
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
38check() {
39 cd "$pkgname-$pkgver"
40 go test ./...
41}
42
43package() {
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)SeverityRules
2026-10-07 14:05:47 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