hyprtilt

LOW
maintainer fpgartktic 0 votes scanned 2026-09-28 19:21:21.991743
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# SPDX-License-Identifier: GPL-3.0-only
2# Copyright (C) 2026 Mateusz Okulanis <FPGArtktic@outlook.com>
3# Maintainer: Mateusz Okulanis <FPGArtktic at outlook dot com>
4#
5# PKGBUILD - Arch User Repository recipe for hyprtilt
6#
7# Builds a release of hyprtilt from the source archive of its tag,
8# following the Arch Linux Rust package guidelines, runs the test suite,
9# and installs the binary, the man page, shell completions for bash, zsh
10# and fish, the license and the README. The man page and the completions
11# are generated by the freshly built binary.
12#
13# The release workflow sets pkgver and the checksum and publishes the
14# recipe (scripts/publish-aur.sh); the checksum here stays SKIP until the
15# first release exists.
16#
17# Usage: makepkg -si
18# makepkg --printsrcinfo > .SRCINFO (after every change)
19#
20# shellcheck shell=bash disable=SC2034,SC2154,SC2164
21
22pkgname=hyprtilt
23pkgver=0.1.0
24pkgrel=1
25pkgdesc='TUI and CLI for Hyprland monitor layout that edits your Lua or hyprlang config in place'
26arch=('x86_64' 'aarch64')
27url='https://github.com/FPGArtktic/hyprtilt'
28license=('GPL-3.0-only')
29depends=('glibc' 'libgcc')
30makedepends=('cargo')
31optdepends=(
32 'hyprland: the compositor whose monitors hyprtilt arranges'
33 'lua: syntax check of Lua configuration files before hyprtilt writes them'
34)
35# The release profile strips the binary (Cargo.toml, profile.release), so a
36# debug package would be empty.
37options=('!debug')
38source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
39sha256sums=('21df6cc2a385fed4cb6f60d87956792f24a5d59ff665c04d1bd822f9e260e3af')
40
41prepare()
42{
43 cd "${pkgname}-${pkgver}"
44 export RUSTUP_TOOLCHAIN=stable
45 cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
46}
47
48build()
49{
50 local out
51
52 cd "${pkgname}-${pkgver}"
53 export RUSTUP_TOOLCHAIN=stable
54 export CARGO_TARGET_DIR=target
55 cargo build --frozen --release --package hyprtilt
56 out=target/assets
57 mkdir -p "${out}"
58 target/release/hyprtilt man >"${out}/hyprtilt.1"
59 target/release/hyprtilt completions bash >"${out}/hyprtilt.bash"
60 target/release/hyprtilt completions zsh >"${out}/_hyprtilt"
61 target/release/hyprtilt completions fish >"${out}/hyprtilt.fish"
62}
63
64check()
65{
66 cd "${pkgname}-${pkgver}"
67 export RUSTUP_TOOLCHAIN=stable
68 export CARGO_TARGET_DIR=target
69 cargo test --frozen --workspace
70}
71
72package()
73{
74 local out=target/assets
75
76 cd "${pkgname}-${pkgver}"
77 install -Dm755 target/release/hyprtilt "${pkgdir}/usr/bin/hyprtilt"
78 install -Dm644 "${out}/hyprtilt.1" "${pkgdir}/usr/share/man/man1/hyprtilt.1"
79 install -Dm644 "${out}/hyprtilt.bash" "${pkgdir}/usr/share/bash-completion/completions/hyprtilt"
80 install -Dm644 "${out}/_hyprtilt" "${pkgdir}/usr/share/zsh/site-functions/_hyprtilt"
81 install -Dm644 "${out}/hyprtilt.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/hyprtilt.fish"
82 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
83 install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
84}
85

Scan history

Scanned at (UTC)SeverityRules
2026-09-28 19:21:21 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