File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,3 +2,7 @@ __pycache__
22config.json
33TouchFishFiles
44log.ndjson
5+ src /
6+ pkg /
7+ * .zst
8+ * .gz
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+
13# TouchFish LTS Client/Server Unified Program (Final Release, Version 4)
24
35
Original file line number Diff line number Diff line change 1+ # Maintainer: TouchFish Community <johnchiao@outlook.com>
2+ pkgname=touchfish
3+ pkgver=4.7.0
4+ pkgrel=1
5+ pkgdesc=" FOSS multi-distribution LAN chatting tool"
6+ arch=(' any' )
7+ url=" https://github.com/touchfish-devs/TouchFish-AUR"
8+ license=(' MIT' )
9+ depends=(' python' ) # 仅需 Python 标准库,无第三方依赖
10+ makedepends=()
11+ optdepends=()
12+ source=(" $pkgname -$pkgver .tar.gz::https://github.com/touchfish-devs/TouchFish-AUR/archive/refs/tags/v$pkgver .tar.gz" )
13+ sha256sums=(' SKIP' )
14+
15+ prepare () {
16+ cd " $srcdir /TouchFish-AUR-$pkgver "
17+ cat > " $pkgname .desktop" << EOF
18+ [Desktop Entry]
19+ Type=Application
20+ Name=TouchFish
21+ Comment=$pkgdesc
22+ Exec=/usr/bin/$pkgname
23+ Icon=/usr/share/pixmaps/$pkgname .ico
24+ Terminal=true
25+ Categories=Network;InstantMessaging;
26+ EOF
27+ }
28+
29+ build () {
30+ true
31+ }
32+
33+ package () {
34+ cd " $srcdir /TouchFish-AUR-$pkgver "
35+
36+ # 安装主程序
37+ install -Dm755 LTS.py " $pkgdir /usr/bin/$pkgname "
38+
39+ # 安装图标
40+ install -Dm644 TouchFish.ico " $pkgdir /usr/share/pixmaps/$pkgname .ico"
41+
42+ # 安装 .desktop 文件
43+ install -Dm644 " $pkgname .desktop" " $pkgdir /usr/share/applications/$pkgname .desktop"
44+
45+ # 安装文档和许可证
46+ install -Dm644 README.md " $pkgdir /usr/share/doc/$pkgname /README.md"
47+ install -Dm644 LICENSE " $pkgdir /usr/share/licenses/$pkgname /LICENSE"
48+ }
You can’t perform that action at this time.
0 commit comments