PKGBUILDs/community/kitty/PKGBUILD

51 lines
2.2 KiB
Bash
Raw Normal View History

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>
# - patch to remove lto from hardcoded cflags
pkgname=kitty
2019-07-29 12:36:16 +00:00
pkgver=0.14.3
pkgrel=1
2018-07-12 00:20:44 +00:00
pkgdesc="A modern, hackable, featureful, OpenGL based terminal emulator"
arch=('x86_64')
url="https://github.com/kovidgoyal/kitty"
license=('GPL3')
2019-07-29 12:36:16 +00:00
depends=('python3' 'freetype2' 'fontconfig' 'wayland' 'libx11' 'libxkbcommon-x11' 'libxi' 'hicolor-icon-theme' 'libgl' 'libcanberra')
2019-07-05 19:52:44 +00:00
makedepends=('libxinerama' 'libxcursor' 'libxrandr' 'wayland-protocols' 'python-sphinx')
2018-07-12 00:20:44 +00:00
optdepends=('imagemagick: viewing images with icat')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/kovidgoyal/$pkgname/archive/v$pkgver.tar.gz"
'0001-remove-lto.patch')
2019-07-29 12:36:16 +00:00
sha512sums=('3224cf2ceed41d74728d61bda99c0ba7b77cee3867f6139818fbf37b2aa64a411110df9c96ee86a4dbe8f189717b3c39f16bd4f5737f67b2c66b952e67149b9a'
2019-05-24 18:50:05 +00:00
'1ca2b72394ea58500da497e0decf60ded2d2ed94451b63f3c7fe89710a58160d55e637ae194c62706457e1fe99356b078050289f74b2e4d4a5450620e16e0d73')
2018-07-12 00:20:44 +00:00
prepare() {
cd "$srcdir/$pkgname-$pkgver"
patch -p1 -i ../0001-remove-lto.patch
}
build() {
cd "$srcdir/$pkgname-$pkgver"
2019-07-05 19:52:44 +00:00
python3 setup.py linux-package --update-check-interval=0
2018-07-12 00:20:44 +00:00
}
package() {
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
2018-07-12 00:20:44 +00:00
}