pkgbase=kitty
pkgname=kitty-shell-integration
pkgver=0.44.0
pkgdesc="A modern, hackable, featureful, OpenGL-based terminal emulator"
arch=('x86_64')
url="https://github.com/kovidgoyal/kitty"
license=('GPL-3.0-only')
sources=("${pkgbase}-${pkgver}.tar.xz")
urls=("https://github.com/kovidgoyal/${pkgbase}/releases/download/v${pkgver}/${sources[0]}")
md5sums=("c3c31e13371c08166cc2bc4ea34cdc74")

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_install() {
  install -Dvm644 shell-integration/bash/kitty.bash "${pkgdir}/etc/bash/bashrc.d/90-kitty.bash"
  install -Dvm644 shell-integration/fish/vendor_conf.d/* -t "${pkgdir}/usr/share/fish/vendor_conf.d"
  install -Dvm644 shell-integration/zsh/{.zshenv,kitty-integration,kitty.zsh} \
    -t "${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/zsh/"
}

# vim:ft=sh syn=sh et sw=2:
