hyprtilt-git

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-git
6#
7# Builds hyprtilt from the default branch of the upstream repository
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# Usage: makepkg -si
14# makepkg --printsrcinfo > .SRCINFO (after every change)
15#
16# shellcheck shell=bash disable=SC2034,SC2154,SC2164
17
18pkgname=hyprtilt-git
19_pkgname=hyprtilt
20pkgver=0.1.0.r0.g9e57335
21pkgrel=1
22pkgdesc='TUI and CLI for Hyprland monitor layout that edits your Lua or hyprlang config in place'
23arch=('x86_64' 'aarch64')
24url='https://github.com/FPGArtktic/hyprtilt'
25license=('GPL-3.0-only')
26depends=('glibc' 'libgcc')
27makedepends=('cargo' 'git')
28optdepends=(
29 'hyprland: the compositor whose monitors hyprtilt arranges'
30 'lua: syntax check of Lua configuration files before hyprtilt writes them'
31)
32provides=("${_pkgname}=${pkgver}")
33conflicts=("${_pkgname}")
34# The release profile strips the binary (Cargo.toml, profile.release), so a
35# debug package would be empty.
36options=('!debug')
37source=("${_pkgname}::git+${url}.git")
38sha256sums=('SKIP')
39
40# Release tags are annotated and named vX.Y.Z or vX.Y.Z-rc.N. A pre-release
41# loses its separators (0.1.0-rc.1 becomes 0.1.0rc1), so that vercmp sorts
42# it below the release: 0.1.0rc1.r5.g1234abc < 0.1.0.r0.g5678def. Before the
43# first release tag the version is r<commit count>.g<commit>.
44pkgver()
45{
46 local desc count tag base pre
47
48 cd "${_pkgname}"
49 if ! desc="$(git describe --long --abbrev=7 --match 'v[0-9]*' 2>/dev/null)"; then
50 printf 'r%s.g%s\n' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
51 return
52 fi
53 desc="${desc#v}"
54 count="${desc%-g*}"
55 tag="${count%-*}"
56 count="${count##*-}"
57 base="${tag%%-*}"
58 pre="${tag#"${base}"}"
59 printf '%s%s.r%s.g%s\n' "${base}" "${pre//[^[:alnum:]]/}" "${count}" "${desc##*-g}"
60}
61
62prepare()
63{
64 cd "${_pkgname}"
65 export RUSTUP_TOOLCHAIN=stable
66 cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
67}
68
69build()
70{
71 local out
72
73 cd "${_pkgname}"
74 export RUSTUP_TOOLCHAIN=stable
75 export CARGO_TARGET_DIR=target
76 cargo build --frozen --release --package hyprtilt
77 out=target/assets
78 mkdir -p "${out}"
79 target/release/hyprtilt man >"${out}/hyprtilt.1"
80 target/release/hyprtilt completions bash >"${out}/hyprtilt.bash"
81 target/release/hyprtilt completions zsh >"${out}/_hyprtilt"
82 target/release/hyprtilt completions fish >"${out}/hyprtilt.fish"
83}
84
85check()
86{
87 cd "${_pkgname}"
88 export RUSTUP_TOOLCHAIN=stable
89 export CARGO_TARGET_DIR=target
90 cargo test --frozen --workspace
91}
92
93package()
94{
95 local out=target/assets
96
97 cd "${_pkgname}"
98 install -Dm755 target/release/hyprtilt "${pkgdir}/usr/bin/hyprtilt"
99 install -Dm644 "${out}/hyprtilt.1" "${pkgdir}/usr/share/man/man1/hyprtilt.1"
100 install -Dm644 "${out}/hyprtilt.bash" "${pkgdir}/usr/share/bash-completion/completions/hyprtilt"
101 install -Dm644 "${out}/_hyprtilt" "${pkgdir}/usr/share/zsh/site-functions/_hyprtilt"
102 install -Dm644 "${out}/hyprtilt.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/hyprtilt.fish"
103 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
104 install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
105}
106

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