mirror of
https://oauth2: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@github.com/m1ngsama/TNT.git
synced 2026-06-26 05:44:38 +08:00
48 lines
923 B
Markdown
48 lines
923 B
Markdown
# Arch / AUR Packaging
|
|
|
|
The draft package name is `tnt-chat` because `tnt` is already a likely name
|
|
collision in Arch/AUR contexts.
|
|
|
|
## Local validation
|
|
|
|
From this directory:
|
|
|
|
```sh
|
|
makepkg -si
|
|
```
|
|
|
|
Optional package linting:
|
|
|
|
```sh
|
|
namcap PKGBUILD
|
|
namcap tnt-chat-*.pkg.tar.zst
|
|
```
|
|
|
|
## Updating metadata
|
|
|
|
After editing `PKGBUILD`, regenerate `.SRCINFO`:
|
|
|
|
```sh
|
|
makepkg --printsrcinfo > .SRCINFO
|
|
```
|
|
|
|
Before AUR submission, replace `sha256sums=('SKIP')` with the real GitHub
|
|
source archive checksum, regenerate `.SRCINFO`, then run the package publish
|
|
check:
|
|
|
|
```sh
|
|
SOURCE_TARBALL=dist/tnt-chat-vX.Y.Z.tar.gz make package-publish-check
|
|
```
|
|
|
|
## Manual AUR submission
|
|
|
|
```sh
|
|
git clone ssh://aur@aur.archlinux.org/tnt-chat.git aur-tnt-chat
|
|
cp PKGBUILD .SRCINFO aur-tnt-chat/
|
|
cd aur-tnt-chat
|
|
git add PKGBUILD .SRCINFO
|
|
git commit -m "Update to X.Y.Z"
|
|
git push
|
|
```
|
|
|
|
Do not wire this to automatic deployment or release automation.
|