2018-07-12 00:20:44 +00:00
|
|
|
# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
|
2018-12-06 13:36:03 +00:00
|
|
|
# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
|
2018-07-12 00:20:44 +00:00
|
|
|
# Contributor: Fabio 'Lolix' Loli <lolix@disroot.org> -> https://github.com/FabioLolix
|
|
|
|
# Contributor: Maximilian Kindshofer <maximilian@kindshofer.net>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2020-10-05 01:11:29 +00:00
|
|
|
# - run setup.py with --disable-link-time-optimization
|
2018-07-12 00:20:44 +00:00
|
|
|
|
2019-09-22 00:55:44 +00:00
|
|
|
pkgbase=kitty
|
|
|
|
pkgname=(kitty kitty-terminfo)
|
2021-08-17 23:08:14 +00:00
|
|
|
pkgver=0.23.1
|
2021-07-26 12:41:09 +00:00
|
|
|
pkgrel=1
|
2019-09-22 00:55:44 +00:00
|
|
|
pkgdesc="A modern, hackable, featureful, OpenGL-based terminal emulator"
|
2018-07-12 00:20:44 +00:00
|
|
|
arch=('x86_64')
|
|
|
|
url="https://github.com/kovidgoyal/kitty"
|
|
|
|
license=('GPL3')
|
2020-10-05 01:11:29 +00:00
|
|
|
depends=('python3' 'freetype2' 'fontconfig' 'wayland' 'libx11' 'libxkbcommon-x11' 'libxi'
|
2021-07-15 23:35:03 +00:00
|
|
|
'hicolor-icon-theme' 'libgl' 'dbus' 'lcms2')
|
2021-05-06 19:59:45 +00:00
|
|
|
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")
|
2021-08-17 23:08:14 +00:00
|
|
|
sha512sums=('2d0c822e6bfca41b0a5e5e71e62f5073792b10c236287a509a6c790e19d098205c8719dbcb4aa630abbbaa3d44d6c9986c13efde7a9556772a89709383a0fe94'
|
2021-05-06 19:59:45 +00:00
|
|
|
'SKIP')
|
|
|
|
validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal
|
2018-07-12 00:20:44 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
2020-10-05 01:11:29 +00:00
|
|
|
python3 setup.py linux-package --update-check-interval=0 --disable-link-time-optimization
|
2018-07-12 00:20:44 +00:00
|
|
|
}
|
|
|
|
|
2019-09-22 00:55:44 +00:00
|
|
|
package_kitty() {
|
|
|
|
depends+=('kitty-terminfo')
|
2021-07-15 23:35:03 +00:00
|
|
|
optdepends=('imagemagick: viewing images with icat'
|
|
|
|
'libcanberra: playing "bell" sound on terminal bell')
|
2019-09-22 00:55:44 +00:00
|
|
|
|
2018-07-12 00:20:44 +00:00
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
|
2019-07-05 19:52:44 +00:00
|
|
|
cp -r linux-package "${pkgdir}"/usr
|
2018-07-12 00:20:44 +00:00
|
|
|
|
2019-07-05 19:52:44 +00:00
|
|
|
# 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
|
2019-09-22 00:55:44 +00:00
|
|
|
|
|
|
|
rm -r "$pkgdir"/usr/share/terminfo
|
2020-02-23 17:19:44 +00:00
|
|
|
|
2021-05-06 19:59:45 +00:00
|
|
|
install -Dm644 docs/_build/html/_downloads/*/kitty.conf "${pkgdir}"/usr/share/doc/${pkgname}/kitty.conf
|
2019-09-22 00:55:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2018-07-12 00:20:44 +00:00
|
|
|
}
|