ttymap

LOW
maintainer Kohei-Wada 0 votes scanned 2026-09-13 05:13:46.038990
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# 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
9pkgname=ttymap
10pkgver=0.3.1
11pkgrel=1
12pkgdesc='Scriptable globe for the terminal — Mapbox Vector Tiles rendered as Unicode Braille'
13arch=('x86_64' 'aarch64')
14url='https://github.com/Kohei-Wada/ttymap'
15license=('MIT' 'Apache-2.0')
16depends=('gcc-libs' 'openssl')
17makedepends=('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.
22options=('!lto')
23source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
24sha256sums=('54bd19b1f49bceee29967ab5802c5f38b5160c3acb3c83cf47932b3571b218b7')
25
26prepare() {
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
34build() {
35 cd "$pkgname-$pkgver"
36 export RUSTUP_TOOLCHAIN=stable
37 export CARGO_TARGET_DIR=target
38 cargo build --frozen --release
39}
40
41check() {
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
48package() {
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)SeverityRules
2026-09-13 05:13:46 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