mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
66 lines
2.7 KiB
Bash
66 lines
2.7 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>
|
|
# - run setup.py with --disable-link-time-optimization
|
|
|
|
pkgbase=kitty
|
|
pkgname=(kitty kitty-terminfo)
|
|
pkgver=0.19.3
|
|
pkgrel=2
|
|
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' 'python-sphinx')
|
|
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/kovidgoyal/$pkgname/archive/v$pkgver.tar.gz"
|
|
fix_ligatures.patch)
|
|
sha512sums=('225b7a4409c5199d556bd57f4253074608a6d3602d874082c991d13e5db73b7dd68e549d954e5a77fb271f4d2c5fa9a3de45a48247e2f3f162af0b9946628990'
|
|
'c6682c7fb1ae64575ce94ae9eff31dc8cde5374adff58704c9d89a48bb5d5df987fe289c67c1ae91e7b1b01d1b5669311e250c565c62238271d83a014d4a0716')
|
|
|
|
prepare() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
patch -Np1 -i "${srcdir}/fix_ligatures.patch"
|
|
}
|
|
|
|
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/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
|
|
}
|