mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
65 lines
2.6 KiB
Bash
65 lines
2.6 KiB
Bash
# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
|
|
# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
|
|
# 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
|
|
|
|
pkgbase=kitty
|
|
pkgname=(kitty kitty-terminfo)
|
|
pkgver=0.18.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')
|
|
makedepends=('libxinerama' 'libxcursor' 'libxrandr' 'wayland-protocols' 'python-sphinx')
|
|
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')
|
|
sha512sums=('8eb5d16c342be8ba88aaadc591e2a04df01b1f5c87b5b5a04026acdf60c4770e07f43d88f82eca70f0c310e93432c8f25d5ccd6d6e83b49f0e2f735aac61e630'
|
|
'1c0290a42552cbe5b3bb120965bcd2dc20b9236dba43e43ff086adc14dc25417323bf9b750bf1cb06ecb65267d6d479f79daf14f64eac697c06a138fa7baa601')
|
|
|
|
prepare() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
patch -p1 -i ../0001-remove-lto.patch
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
python3 setup.py linux-package --update-check-interval=0
|
|
}
|
|
|
|
package_kitty() {
|
|
depends+=('kitty-terminfo')
|
|
|
|
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/generated/conf/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
|
|
}
|