1 # Maintainer: Maxim Baz <archlinux at maximbaz dot com>
2 # Contributor: Sven-Hendrik Haase <svenstaro@archlinux.org>
3 # Contributor: Fabio 'Lolix' Loli <lolix@disroot.org> -> https://github.com/FabioLolix
4 # Contributor: Maximilian Kindshofer <maximilian@kindshofer.net>
7 pkgname=(kitty kitty-terminfo kitty-shell-integration)
10 pkgdesc="A modern, hackable, featureful, OpenGL-based terminal emulator"
12 url="https://github.com/kovidgoyal/kitty"
14 depends=('python3' 'freetype2' 'fontconfig' 'wayland' 'libx11' 'libxkbcommon-x11' 'libxi'
15 'hicolor-icon-theme' 'libgl' 'dbus' 'lcms2' 'librsync')
16 makedepends=('libxinerama' 'libxcursor' 'libxrandr' 'wayland-protocols' 'go')
17 source=("${pkgname}-${pkgver}.tar.xz::https://github.com/kovidgoyal/${pkgbase}/releases/download/v${pkgver}/${pkgbase}-${pkgver}.tar.xz"
18 "${pkgname}-${pkgver}.tar.xz.sig::https://github.com/kovidgoyal/${pkgbase}/releases/download/v${pkgver}/${pkgbase}-${pkgver}.tar.xz.sig")
19 sha512sums=('a8863c8bf5a3c385671d98bd50481ffcd3984e45ee051173eb38de9aac79643e69a312e08b8f655759f3ecdfab4efe38dca39167f5590e482748b5e85dea5537'
21 validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal
24 cd "$srcdir/$pkgname-$pkgver"
25 python3 setup.py linux-package --update-check-interval=0
29 depends+=('kitty-terminfo' 'kitty-shell-integration')
30 optdepends=('imagemagick: viewing images with icat'
31 'python-pygments: syntax highlighting in kitty +kitten diff'
32 'libcanberra: playing "bell" sound on terminal bell')
34 cd "$srcdir/$pkgname-$pkgver"
36 cp -r linux-package "${pkgdir}"/usr
39 python __main__.py + complete setup bash | install -Dm644 /dev/stdin "${pkgdir}"/usr/share/bash-completion/completions/kitty
40 python __main__.py + complete setup fish | install -Dm644 /dev/stdin "${pkgdir}"/usr/share/fish/vendor_completions.d/kitty.fish
41 python __main__.py + complete setup zsh | install -Dm644 /dev/stdin "${pkgdir}"/usr/share/zsh/site-functions/_kitty
43 install -Dm644 "${pkgdir}"/usr/share/icons/hicolor/256x256/apps/kitty.png "${pkgdir}"/usr/share/pixmaps/kitty.png
45 rm -r "$pkgdir"/usr/share/terminfo
46 rm -r "$pkgdir"/usr/lib/kitty/shell-integration
48 install -Dm644 docs/_build/html/_downloads/*/kitty.conf "${pkgdir}"/usr/share/doc/${pkgname}/kitty.conf
51 package_kitty-terminfo() {
52 pkgdesc='Terminfo for kitty, an OpenGL-based terminal emulator'
55 mkdir -p "$pkgdir/usr/share/terminfo"
56 tic -x -o "$pkgdir/usr/share/terminfo" $pkgbase-$pkgver/terminfo/kitty.terminfo
59 package_kitty-shell-integration() {
60 pkgdesc='Shell integration scripts for kitty, an OpenGL-based terminal emulator'
62 mkdir -p "$pkgdir/usr/lib/kitty/"
63 cp -r "$srcdir/$pkgbase-$pkgver/shell-integration" "$pkgdir/usr/lib/kitty/"