# Maintainer: Sven-Hendrik Haase # Maintainer: Maxim Baz <$pkgname at maximbaz dot com> # Contributor: Fabio 'Lolix' Loli -> https://github.com/FabioLolix # Contributor: Maximilian Kindshofer # ALARM: Kevin Mihelich # - run setup.py with --disable-link-time-optimization pkgbase=kitty pkgname=(kitty kitty-terminfo) pkgver=0.21.1 pkgrel=1 pkgdesc="A modern, hackable, featureful, OpenGL-based terminal emulator" arch=('x86_64') url="https://github.com/kovidgoyal/kitty" license=('GPL3') depends=('python3' 'freetype2' 'fontconfig' 'wayland' 'libx11' 'libxkbcommon-x11' 'libxi' 'hicolor-icon-theme' 'libgl' 'libcanberra' 'dbus' 'lcms2') makedepends=('libxinerama' 'libxcursor' 'libxrandr' 'wayland-protocols') source=("${pkgname}-${pkgver}.tar.xz::https://github.com/kovidgoyal/${pkgbase}/releases/download/v${pkgver}/${pkgbase}-${pkgver}.tar.xz" "${pkgname}-${pkgver}.tar.xz.sig::https://github.com/kovidgoyal/${pkgbase}/releases/download/v${pkgver}/${pkgbase}-${pkgver}.tar.xz.sig") sha512sums=('86b1e03f8227375cc46dabffd972a131c8a33d55d87888b2cf67d97da6749144408778b8ac126dbc29fe3850f272e5ae0c4313194ebb130ae3417b04b76cb987' 'SKIP') validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal build() { cd "$srcdir/$pkgname-$pkgver" python3 setup.py linux-package --update-check-interval=0 --disable-link-time-optimization } package_kitty() { depends+=('kitty-terminfo') optdepends=('imagemagick: viewing images with icat') cd "$srcdir/$pkgname-$pkgver" cp -r linux-package "${pkgdir}"/usr # completions python __main__.py + complete setup bash | install -Dm644 /dev/stdin "${pkgdir}"/usr/share/bash-completion/completions/kitty python __main__.py + complete setup fish | install -Dm644 /dev/stdin "${pkgdir}"/usr/share/fish/vendor_completions.d/kitty.fish # doesn't know how to http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Autoloaded-files # so we write our own header { echo "#compdef kitty" python __main__.py + complete setup zsh } | 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 install -Dm644 docs/_build/html/_downloads/*/kitty.conf "${pkgdir}"/usr/share/doc/${pkgname}/kitty.conf } 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 }