hyprtilt-git
LOW
maintainer fpgartktic
0 votes
scanned 2026-09-28 19:21:21.991743
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
18
pkgname=hyprtilt-git
19
_pkgname=hyprtilt
20
pkgver=0.1.0.r0.g9e57335
21
pkgrel=1
22
pkgdesc='TUI and CLI for Hyprland monitor layout that edits your Lua or hyprlang config in place'
23
arch=('x86_64' 'aarch64')
24
url='https://github.com/FPGArtktic/hyprtilt'
25
license=('GPL-3.0-only')
26
depends=('glibc' 'libgcc')
27
makedepends=('cargo' 'git')
28
optdepends=(
29
'hyprland: the compositor whose monitors hyprtilt arranges'
30
'lua: syntax check of Lua configuration files before hyprtilt writes them'
31
)
32
provides=("${_pkgname}=${pkgver}")
33
conflicts=("${_pkgname}")
34
# The release profile strips the binary (Cargo.toml, profile.release), so a
35
# debug package would be empty.
36
options=('!debug')
37
source=("${_pkgname}::git+${url}.git")
38
sha256sums=('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>.
44
pkgver()
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
62
prepare()
63
{
64
cd "${_pkgname}"
65
export RUSTUP_TOOLCHAIN=stable
66
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
67
}
68
69
build()
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
85
check()
86
{
87
cd "${_pkgname}"
88
export RUSTUP_TOOLCHAIN=stable
89
export CARGO_TARGET_DIR=target
90
cargo test --frozen --workspace
91
}
92
93
package()
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) | Severity | Rules |
|---|---|---|
| 2026-09-28 19:21:21 | Low | 1 |