vtium-terminfo-git
LOW
maintainer aaronsb
0 votes
base
vtium-git
scanned 2026-11-02 22:03:11.184944
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: Aaron Bockelie <aaronsb@gmail.com>
2
#
3
# vtium built from the tip of a git branch: GitHub's main by default, as two
4
# packages, the console and its terminfo entry (ADR-1500 D3).
5
# VTIUM_GIT_URL and VTIUM_GIT_BRANCH point the build at another repository
6
# and branch, such as a local checkout, and VTIUM_FEATURES names the
7
# console's features:
8
#
9
# VTIUM_GIT_URL=file:///path/to/vtium VTIUM_GIT_BRANCH=my-branch makepkg -f
10
#
11
# .SRCINFO is made with none of them set, so it always names GitHub's main.
12
# The source is not checked against a signature: main's tip is a merge
13
# commit that GitHub signs with its own key.
14
15
pkgbase=vtium-git
16
pkgname=('vtium-git' 'vtium-terminfo-git')
17
pkgver=r1866.16e66a2
18
pkgrel=1
19
pkgdesc='Terminal for the Linux console, drawn through KMS/DRM (git main)'
20
arch=('x86_64')
21
url='https://github.com/vtium/vtium'
22
license=('MIT')
23
makedepends=('cargo' 'git' 'ncurses' 'libxkbcommon' 'systemd-libs')
24
options=('!debug')
25
source=("vtium::git+${VTIUM_GIT_URL:-https://github.com/vtium/vtium.git}#branch=${VTIUM_GIT_BRANCH:-main}")
26
sha256sums=('SKIP')
27
28
pkgver() {
29
cd vtium
30
# The last version tag, with the hyphen before a pre-release dropped
31
# (v0.1.0-alpha.1 is 0.1.0alpha.1, as the vtium package names it), then
32
# .r<commits since>.g<hash>. Before vtium has a tag, r<commits>.<hash>.
33
if git describe --long --tags --match 'v[0-9]*' --abbrev=7 >/dev/null 2>&1; then
34
git describe --long --tags --match 'v[0-9]*' --abbrev=7 |
35
sed 's/^v//;s/^\([0-9.]*\)-\([a-z]\)/\1\2/;s/\([^-]*-g\)/r\1/;s/-/./g'
36
else
37
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
38
fi
39
}
40
41
package_vtium-git() {
42
depends=('glibc' 'libgcc' 'libxkbcommon' 'systemd-libs' 'vtium-terminfo-git')
43
optdepends=('kbd: console fonts, which vtium draws when no frit is set'
44
'kmscon-terminfo: the terminfo entry kmscon, for sessions run with term=kmscon')
45
provides=('vtium')
46
conflicts=('vtium')
47
install=vtium-git.install
48
_package_console
49
}
50
51
package_vtium-terminfo-git() {
52
arch=('any')
53
pkgdesc='The terminfo entry xterm-vtium, for sessions in vtium (git main)'
54
provides=('vtium-terminfo')
55
conflicts=('vtium-terminfo')
56
_package_terminfo
57
}
58
59
# Everything below is the same in vtium-git/PKGBUILD and vtium/PKGBUILD;
60
# aur-publish refuses a package whose copy differs from the other's.
61
62
prepare() {
63
cd vtium
64
cargo fetch --locked --target "$(rustc -vV | sed -n 's/^host: //p')"
65
}
66
67
# vtium's Makefile builds and stages every file the packages ship, so which
68
# file goes where lives in vtium's tree (ADR-1500 D1, D3). Each call names
69
# the same build: PREFIX=/usr, so the console starts its glyph helper at
70
# /usr/bin/vtium-vitrify, the features that VTIUM_FEATURES in makepkg's
71
# environment names, such as VTIUM_FEATURES='images logind', and --frozen,
72
# because prepare() fetched the crates. So make install in package() finds
73
# the build that build() made, and builds nothing again.
74
_make() {
75
CARGO_TARGET_DIR=target make -C "$srcdir/vtium" PREFIX=/usr \
76
FEATURES="${VTIUM_FEATURES:-}" CARGO_BUILD_FLAGS=--frozen "$@"
77
}
78
79
# The console, built with vtium's minspec profile, and its glyph helper.
80
build() {
81
_make install-build
82
}
83
84
# The console, its helper, its units vtium@.service and vtium-getty@.service,
85
# the example configuration /etc/vtium/vtium.conf.example, the example udev
86
# rules and hwdb fragment, and the license.
87
_package_console() {
88
_make install DESTDIR="$pkgdir" PKGNAME="$pkgname"
89
}
90
91
# vtium's terminfo entry, compiled under its name xterm-vtium, and the
92
# license (ADR-1500 D3). No package ships an entry named kmscon: the
93
# kmscon-terminfo package keeps that name.
94
_package_terminfo() {
95
_make install-terminfo DESTDIR="$pkgdir" PKGNAME="$pkgname"
96
}
97
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-02 22:03:11 | Low | 1 |