tgt-client-git
MEDIUM
maintainer w568w
0 votes
scanned 2026-09-27 13:18:29.354985
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
3
pkgname=tgt-client-git
4
pkgver=1.0.0
5
pkgrel=1
6
pkgdesc="A simple TUI for Telegram"
7
arch=('x86_64')
8
url="https://github.com/FedericoBruzzone/tgt"
9
license=('MIT' 'Apache-2.0')
10
depends=('gcc-libs' 'tdlib-td' 'libc++' 'libc++abi' 'libunwind')
11
makedepends=('rust' 'cargo' 'git')
12
source=("git+https://github.com/FedericoBruzzone/tgt.git")
13
sha256sums=('SKIP')
14
15
prepare() {
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
25
build() {
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
34
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-09-27 13:18:29 | Medium | 1 |
| 2026-06-18 16:11:54 | Clean | 0 |