[arch-commits] Commit in kitty/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Sun Sep 22 00:12:38 UTC 2019


    Date: Sunday, September 22, 2019 @ 00:12:37
  Author: svenstaro
Revision: 511445

upgpkg: kitty 0.14.4-2

Add separate kitty-terminfo package (FS#63844)

Modified:
  kitty/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-21 23:18:28 UTC (rev 511444)
+++ PKGBUILD	2019-09-22 00:12:37 UTC (rev 511445)
@@ -3,10 +3,11 @@
 # Contributor: Fabio 'Lolix' Loli <lolix at disroot.org> -> https://github.com/FabioLolix
 # Contributor: Maximilian Kindshofer <maximilian at kindshofer.net>
 
-pkgname=kitty
+pkgbase=kitty
+pkgname=(kitty kitty-terminfo)
 pkgver=0.14.4
-pkgrel=1
-pkgdesc="A modern, hackable, featureful, OpenGL based terminal emulator"
+pkgrel=2
+pkgdesc="A modern, hackable, featureful, OpenGL-based terminal emulator"
 arch=('x86_64')
 url="https://github.com/kovidgoyal/kitty"
 license=('GPL3')
@@ -21,7 +22,9 @@
   python3 setup.py linux-package --update-check-interval=0
 }
 
-package() {
+package_kitty() {
+  depends+=('kitty-terminfo')
+
   cd "$srcdir/$pkgname-$pkgver"
 
   cp -r linux-package "${pkgdir}"/usr
@@ -37,4 +40,14 @@
   } | install -Dm644 /dev/stdin "${pkgdir}"/usr/share/zsh/site-functions/_kitty
 
   install -Dm644 "${pkgdir}"/usr/share/icons/hicolor/256x256/apps/kitty.png "${pkgdir}"/usr/share/pixmaps/kitty.png
+
+  rm -r "$pkgdir"/usr/share/terminfo
 }
+
+package_kitty-terminfo() {
+  pkgdesc='Terminfo for kitty, an OpenGL-based terminal emulator'
+  depends=('ncurses')
+
+  mkdir -p "$pkgdir/usr/share/terminfo"
+  tic -x -o "$pkgdir/usr/share/terminfo" $pkgbase-$pkgver/terminfo/kitty.terminfo
+}


More information about the arch-commits mailing list