Skip to content

Commit cd3dcef

Browse files
authored
others: AUR 发布 (#78)
* Create PKGBUILD * 改路径 * 修改 gitignore 忽略编译后的包 * 添加 Shebang * 修改 PKGBUILD * 添加校验 * 暂时关闭校验
1 parent e2574d2 commit cd3dcef

3 files changed

Lines changed: 54 additions & 0 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ __pycache__
22
config.json
33
TouchFishFiles
44
log.ndjson
5+
src/
6+
pkg/
7+
*.zst
8+
*.gz

LTS.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python3
2+
13
# TouchFish LTS Client/Server Unified Program (Final Release, Version 4)
24

35

PKGBUILD

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
}

0 commit comments

Comments
 (0)