fix(packaging): avoid conflicts with kitty split packages

fws-kitty shipped the shell integration and system terminfo files also owned by kitty-shell-integration and kitty-terminfo, so pacman aborted on file conflicts. Depend on those packages and omit their paths from fws-kitty; bump pkgrel to publish the fix.
This commit is contained in:
BlackAngelTV committed 2026-11-12 13:52:17 +01:00
1 parent 58fc9d1aa3
commit dc13716431
2 files changed
+18 -5

No files matched your search

+10 -1
View File
@@ -12,7 +12,7 @@
pkgname=fws-kitty
pkgver=0.50.0
pkgrel=1
pkgrel=2
pkgdesc='Fast, feature-rich, GPU based terminal (FWS fork with the file-manager kitten)'
arch=('x86_64' 'aarch64')
url='https://gitea.nocode-var.tech/FWS/FWS-Kitty'
@@ -28,6 +28,9 @@ depends=(
libx11 libxcb libxrandr libxinerama libxcursor libxi libxrender
libxkbcommon libxkbcommon-x11 mesa wayland dbus
libcanberra systemd-libs
# Arch ships these files in separate packages; shipping them here would
# make pacman abort on file conflicts with the installed split packages.
kitty-shell-integration kitty-terminfo
)
makedepends=(
git go python pkgconf ncurses rsync which file simde shader-slang
@@ -66,5 +69,11 @@ package() {
# kitty's linux-package target stages a full self-contained install, so
# pointing --prefix at the package root is enough; no manual file copying.
PATH="$srcdir/$pkgname/.docs-venv/bin:$PATH" python setup.py linux-package --prefix "$pkgdir/usr"
# These paths are owned by kitty-shell-integration and kitty-terminfo on
# Arch. Remove them here so upgrading from upstream kitty does not fail
# with pacman file conflicts; the dependencies above provide them.
rm -rf "$pkgdir/usr/lib/kitty/shell-integration"
rm -f "$pkgdir/usr/share/terminfo/x/xterm-kitty"
rmdir --ignore-fail-on-non-empty "$pkgdir/usr/share/terminfo/x" "$pkgdir/usr/share/terminfo" 2>/dev/null || true
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
+8 -4
View File
@@ -5,6 +5,11 @@ prêt à être publié dans le dépôt officiel FWS. Le paquet s'appelle
`fws-kitty` et remplace `kitty` (`provides`/`conflicts`) : les deux ne peuvent
pas cohabiter, ils installent les mêmes binaires dans `/usr/bin`.
L'intégration shell et le terminfo restent fournis par les paquets Arch
`kitty-shell-integration` et `kitty-terminfo`, dont `fws-kitty` dépend. Le
`PKGBUILD` retire ces fichiers de son propre paquet pour éviter les conflits
de fichiers lors du remplacement de `kitty`.
## Construire
```sh
@@ -71,7 +76,6 @@ repo-add repo/fws-kitty.db.tar.gz fws-kitty-*.pkg.tar.zst
# puis copier repo/ vers le serveur
```
Si le dépôt doit aussi fournir `kitty-terminfo` et l'intégration shell aux
serveurs SSH, ces fichiers peuvent être découpés en paquets séparés : la
documentation de kitty (`docs/build.rst`, section « Notes pour les
empaqueteurs ») décrit la répartition.
Le paquet ne contient pas les fichiers appartenant à `kitty-shell-integration`
et `kitty-terminfo`. Ces paquets restent nécessaires pour l'utilisation de
kitty et sont donc déclarés en dépendances.