summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: da89018704a146080cdf0376b2308cd14bdf7ea5 (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
28
29
30
31
32
33
# Maintainer: LightQuantum<cy.n01@outlook.com>

pkgname=kitty-without-monolimit-git
pkgver=0.14.2.r174.gc30c21b2
pkgrel=1
pkgdesc="A modern, hackable, featureful, OpenGL based terminal emulator (monospace font limit removed)."
arch=(i686 x86_64)
url="https://github.com/kovidgoyal/kitty"
license=(GPL3)
depends=(python3 freetype2 fontconfig wayland libx11 libgl)
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" "kitty.patch")
md5sums=('SKIP'
         'ac7ea79c862f3d74f6b87804e433e6b7')

prepare() {
  cd "$srcdir/${pkgname/-without-monolimit-git/}"
  patch --strip=1 --input="${srcdir}/kitty.patch"
}

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

package() {
  cd "$srcdir/${pkgname/-without-monolimit-git/}"

  python3 setup.py linux-package --prefix "${pkgdir}"/usr
}