1 Commits
Author SHA1 Message Date
BlackAngelTV dc13716431 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.
2026-11-12 13:52:17 +01:00
2 changed files with 18 additions and 5 deletions

No files matched your search

+10 -1
View File
@@ -12,7 +12,7 @@
pkgname=fws-kitty pkgname=fws-kitty
pkgver=0.50.0 pkgver=0.50.0
pkgrel=1 pkgrel=2
pkgdesc='Fast, feature-rich, GPU based terminal (FWS fork with the file-manager kitten)' pkgdesc='Fast, feature-rich, GPU based terminal (FWS fork with the file-manager kitten)'
arch=('x86_64' 'aarch64') arch=('x86_64' 'aarch64')
url='https://gitea.nocode-var.tech/FWS/FWS-Kitty' url='https://gitea.nocode-var.tech/FWS/FWS-Kitty'
@@ -28,6 +28,9 @@ depends=(
libx11 libxcb libxrandr libxinerama libxcursor libxi libxrender libx11 libxcb libxrandr libxinerama libxcursor libxi libxrender
libxkbcommon libxkbcommon-x11 mesa wayland dbus libxkbcommon libxkbcommon-x11 mesa wayland dbus
libcanberra systemd-libs 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=( makedepends=(
git go python pkgconf ncurses rsync which file simde shader-slang 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 # kitty's linux-package target stages a full self-contained install, so
# pointing --prefix at the package root is enough; no manual file copying. # 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" 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" 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 `fws-kitty` et remplace `kitty` (`provides`/`conflicts`) : les deux ne peuvent
pas cohabiter, ils installent les mêmes binaires dans `/usr/bin`. 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 ## Construire
```sh ```sh
@@ -71,7 +76,6 @@ repo-add repo/fws-kitty.db.tar.gz fws-kitty-*.pkg.tar.zst
# puis copier repo/ vers le serveur # puis copier repo/ vers le serveur
``` ```
Si le dépôt doit aussi fournir `kitty-terminfo` et l'intégration shell aux Le paquet ne contient pas les fichiers appartenant à `kitty-shell-integration`
serveurs SSH, ces fichiers peuvent être découpés en paquets séparés : la et `kitty-terminfo`. Ces paquets restent nécessaires pour l'utilisation de
documentation de kitty (`docs/build.rst`, section « Notes pour les kitty et sont donc déclarés en dépendances.
empaqueteurs ») décrit la répartition.