mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
74 lines
3.3 KiB
Bash
74 lines
3.3 KiB
Bash
# Maintainer: Maxim Baz <archlinux at maximbaz dot com>
|
|
# Contributor: Sven-Hendrik Haase <svenstaro@archlinux.org>
|
|
# 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
|
|
# - bypass false gcc array bounds error with -Wno-error=array-bounds
|
|
|
|
pkgbase=kitty
|
|
pkgname=(kitty kitty-terminfo kitty-shell-integration)
|
|
pkgver=0.29.2
|
|
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' 'dbus' 'lcms2' 'librsync')
|
|
makedepends=('libxinerama' 'libxcursor' 'libxrandr' 'wayland-protocols' 'go')
|
|
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")
|
|
sha512sums=('a34d8b5bc817dd9d27f1afa190856d916576f52458ede2253655b294358b6b89b1f103acb90d8d66a494b346420ddedc9fcf1a3399f561268ded82e7b1954b06'
|
|
'SKIP')
|
|
validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
CFLAGS+=" -Wno-error=array-bounds"
|
|
export CGO_CPPFLAGS="${CPPFLAGS}"
|
|
export CGO_CFLAGS="${CFLAGS}"
|
|
export CGO_CXXFLAGS="${CXXFLAGS}"
|
|
export CGO_LDFLAGS="${LDFLAGS}"
|
|
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
|
|
python3 setup.py linux-package --update-check-interval=0 --disable-link-time-optimization
|
|
}
|
|
|
|
package_kitty() {
|
|
depends+=('kitty-terminfo' 'kitty-shell-integration')
|
|
optdepends=('imagemagick: viewing images with icat'
|
|
'python-pygments: syntax highlighting in kitty +kitten diff'
|
|
'libcanberra: playing "bell" sound on terminal bell')
|
|
|
|
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
|
|
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
|
|
rm -r "$pkgdir"/usr/lib/kitty/shell-integration
|
|
|
|
install -Dm644 docs/_build/html/_downloads/*/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
|
|
}
|
|
|
|
package_kitty-shell-integration() {
|
|
pkgdesc='Shell integration scripts for kitty, an OpenGL-based terminal emulator'
|
|
|
|
mkdir -p "$pkgdir/usr/lib/kitty/"
|
|
cp -r "$srcdir/$pkgbase-$pkgver/shell-integration" "$pkgdir/usr/lib/kitty/"
|
|
}
|