43 lines
1.4 KiB
Bash
43 lines
1.4 KiB
Bash
# Template file for 'kitty'
|
|
pkgname=kitty
|
|
version=0.26.3
|
|
revision=2
|
|
pycompile_dirs="usr/lib/kitty"
|
|
hostmakedepends="pkg-config python3 wayland-devel wayland-protocols"
|
|
makedepends="gettext-devel glfw-devel harfbuzz-devel libxkbcommon-devel
|
|
python3-devel wayland-devel wayland-protocols librsync-devel libcanberra-devel openssl-devel"
|
|
depends="kitty-terminfo-${version}_${revision}"
|
|
short_desc="Modern, hackable, featureful, OpenGL based terminal emulator"
|
|
maintainer="Benjamin Slade <slade@jnanam.net>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://sw.kovidgoyal.net/kitty/"
|
|
changelog="https://sw.kovidgoyal.net/kitty/changelog.html"
|
|
distfiles="https://github.com/kovidgoyal/kitty/releases/download/v${version}/kitty-${version}.tar.xz"
|
|
checksum=e86f06da696fce7d6e5822bd82198abdd5d94dbebd5eaacbd3a7b4f6001342f9
|
|
python_version=3
|
|
LDFLAGS+=" -Wl,-z,stack-size=2097152"
|
|
|
|
# TIOCSWINSZ on ppc overflows signed int, used in ioctl()
|
|
# glibc defines it with ulong, musl with int (should be harmless)
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc*-musl) CFLAGS+=" -Wno-error=overflow";;
|
|
esac
|
|
|
|
do_build() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
CFLAGS+=" -I${XBPS_CROSS_BASE}/${py3_inc}"
|
|
fi
|
|
python3 setup.py linux-package --prefix=${DESTDIR}/usr --update-check-interval=0 --verbose
|
|
}
|
|
|
|
do_install() {
|
|
vsconf $(find ${DESTDIR}/usr/share/doc/kitty/html/_downloads/ -name "kitty.conf")
|
|
}
|
|
|
|
kitty-terminfo_package() {
|
|
short_desc+=" - terminfo data"
|
|
pkg_install() {
|
|
vmove usr/share/terminfo
|
|
}
|
|
}
|