tgt-client-git

MEDIUM
maintainer w568w 0 votes scanned 2026-09-27 13:18:29.354985
View on AUR
Why flagged

This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.

Triggered rules

Medium Recently orphaned & re-adopted orphaned_readopted

This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.

PKGBUILD

1# Maintainer: X-LeeHe <a2956962139@outlook.com>
2
3pkgname=tgt-client-git
4pkgver=1.0.0
5pkgrel=1
6pkgdesc="A simple TUI for Telegram"
7arch=('x86_64')
8url="https://github.com/FedericoBruzzone/tgt"
9license=('MIT' 'Apache-2.0')
10depends=('gcc-libs' 'tdlib-td' 'libc++' 'libc++abi' 'libunwind')
11makedepends=('rust' 'cargo' 'git')
12source=("git+https://github.com/FedericoBruzzone/tgt.git")
13sha256sums=('SKIP')
14
15prepare() {
16 cd "$srcdir/tgt"
17 cargo fetch --locked
18
19 # Create compatibility symlink in build directory
20 if [ ! -f /usr/lib/libunwind.so.1 ] && [ -f /usr/lib/libunwind.so.8 ]; then
21 ln -sf /usr/lib/libunwind.so.8 "$srcdir/tgt/libunwind.so.1"
22 fi
23}
24
25build() {
26 cd "$srcdir/tgt"
27 export RUSTUP_TOOLCHAIN=stable
28 export ZSTD_SYS_USE_PKG_CONFIG=0
29 export PKG_CONFIG_PATH=/usr/lib/pkgconfig:$PKG_CONFIG_PATH
30 export LD_LIBRARY_PATH="$srcdir/tgt:$LD_LIBRARY_PATH"
31 cargo build --release --features download-tdlib
32}
33
34package() {
35 cd "$srcdir/tgt"
36
37 # Install binary
38 install -Dm755 "target/release/tgt" "$pkgdir/usr/bin/tgt"
39
40 # Install license files
41 install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT"
42 install -Dm644 LICENSE-APACHE "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE"
43
44 # Install documentation
45 install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
46 install -Dm644 CHANGELOG.md "$pkgdir/usr/share/doc/$pkgname/CHANGELOG.md"
47
48 # Install example configurations if they exist
49 if [ -d "examples" ]; then
50 install -dm755 "$pkgdir/usr/share/doc/$pkgname/examples"
51 cp -r examples/* "$pkgdir/usr/share/doc/$pkgname/examples/"
52 fi
53}
54
55# vim: ts=2 sw=2 et:
56

Scan history

Scanned at (UTC)SeverityRules
2026-09-27 13:18:29 Medium 1
2026-06-18 16:11:54 Clean 0

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion