ttymap
LOW
maintainer Kohei-Wada
0 votes
scanned 2026-09-13 05:13:46.038990
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: Kohei Wada <https://github.com/Kohei-Wada>
2
#
3
# Reference PKGBUILD, kept in-tree as the source of truth; the AUR
4
# copy lives in aur.archlinux.org/ttymap.git.
5
#
6
# On each release: bump pkgver, refresh sha256sums (`updpkgsums`),
7
# then push to the AUR repo.
8
9
pkgname=ttymap
10
pkgver=0.3.1
11
pkgrel=1
12
pkgdesc='Scriptable globe for the terminal — Mapbox Vector Tiles rendered as Unicode Braille'
13
arch=('x86_64' 'aarch64')
14
url='https://github.com/Kohei-Wada/ttymap'
15
license=('MIT' 'Apache-2.0')
16
depends=('gcc-libs' 'openssl')
17
makedepends=('cargo')
18
# mlua compiles Lua 5.4 from vendored C sources. Under makepkg's
19
# default `lto` option that C code is built with -flto=auto, so the
20
# static lib carries GCC LTO IR that rust-lld cannot read and every
21
# lua_* symbol comes back undefined at link time.
22
options=('!lto')
23
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
24
sha256sums=('54bd19b1f49bceee29967ab5802c5f38b5160c3acb3c83cf47932b3571b218b7')
25
26
prepare() {
27
cd "$pkgname-$pkgver"
28
# Vendor dependencies up front so build() runs without network,
29
# as makepkg expects.
30
export RUSTUP_TOOLCHAIN=stable
31
cargo fetch --locked --target "$(rustc -vV | sed -n 's/^host: //p')"
32
}
33
34
build() {
35
cd "$pkgname-$pkgver"
36
export RUSTUP_TOOLCHAIN=stable
37
export CARGO_TARGET_DIR=target
38
cargo build --frozen --release
39
}
40
41
check() {
42
cd "$pkgname-$pkgver"
43
export RUSTUP_TOOLCHAIN=stable
44
# The IPC round-trip test spawns the built binary; no network.
45
cargo test --frozen --release
46
}
47
48
package() {
49
cd "$pkgname-$pkgver"
50
# install-system stages bin/ + share/ttymap/ under $pkgdir; it
51
# never touches the live filesystem and never needs root. Its
52
# cargo build is a cache hit on build()'s output (same
53
# CARGO_TARGET_DIR), so nothing is fetched or recompiled here.
54
make install-system DESTDIR="$pkgdir" PREFIX=/usr
55
56
install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT"
57
install -Dm644 LICENSE-APACHE "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE"
58
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
59
}
60
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-13 05:13:46 | Low | 1 |