summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 56539f1180930f03b1ce7222d1d557e141bd42fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Fabio 'Lolix' Loli <lolix@disroot.org> -> https://github.com/FabioLolix
# Contributor: Maximilian Kindshofer <maximilian@kindshofer.net>

pkgname=kitty-git
pkgver=0.14.2.r124.g4b77530c
pkgrel=2
pkgdesc="A modern, hackable, featureful, OpenGL based terminal emulator"
arch=(i686 x86_64)
url="https://github.com/kovidgoyal/kitty"
license=(GPL3)
depends=(python3 freetype2 fontconfig wayland libx11 libgl libcanberra)
makedepends=(git python-setuptools libxinerama libxcursor libxrandr libxkbcommon libxkbcommon-x11 glfw-x11 wayland-protocols mesa python-sphinx)
optdepends=('imagemagick: viewing images with icat')
provides=(kitty)
conflicts=(kitty)
source=("git+https://github.com/kovidgoyal/kitty.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname/-git/}"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "$srcdir/${pkgname/-git/}"
  python3 setup.py linux-package --prefix "${pkgdir}"/usr
}