1 # Template file for 'kitty'
6 hostmakedepends="ncurses pkg-config python3-devel wayland-devel wayland-protocols"
7 makedepends="gettext-devel glfw-devel harfbuzz-devel libxkbcommon-devel
8 python3-devel wayland-devel wayland-protocols"
9 depends="kitty-terminfo"
10 conf_files="/etc/kitty/kitty.conf"
11 short_desc="Modern, hackable, featureful, OpenGL based terminal emulator"
12 maintainer="Julio Galvan <juliogalvan@protonmail.com>"
13 license="GPL-3.0-or-later"
14 homepage="https://github.com/kovidgoyal/kitty"
15 distfiles="https://github.com/kovidgoyal/kitty/archive/v${version}.tar.gz"
16 checksum=ef22208497a76e2f88ebe56c176e4608f049b056252cf1bf122c9c1ec711cfa6
19 if [ -n "$CROSS_BUILD" ]; then
20 export CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python3.6m"
21 sed -i "s|-fpie|-fpie ${CFLAGS}|g" setup.py
23 case "$XBPS_TARGET_MACHINE" in
25 sed -i 's/pow10/pow_10/g' kitty/parser.c;;
27 python3 setup.py linux-package --prefix=${DESTDIR}/usr --verbose
32 cp ${DESTDIR}/usr/lib/kitty/kitty/kitty.conf ${DESTDIR}/etc/kitty/
35 kitty-terminfo_package() {
36 short_desc+=" - terminfo data"
39 vmove usr/share/terminfo