42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
# Template file for 'kitty'
|
|
pkgname=kitty
|
|
version=0.13.3
|
|
revision=2
|
|
pycompile_dirs="usr/lib/kitty"
|
|
hostmakedepends="ncurses pkg-config python3 wayland-devel wayland-protocols"
|
|
makedepends="gettext-devel glfw-devel harfbuzz-devel libxkbcommon-devel
|
|
python3-devel wayland-devel wayland-protocols"
|
|
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=37b90f3467c31ee9f0338c066563ab2ec2eac56267286bc4ef6d9850f97f1507
|
|
pycompile_version="$py3_ver"
|
|
LDFLAGS+=" -Wl,-z,stack-size=2097152"
|
|
|
|
do_build() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
CFLAGS+=" -I${XBPS_CROSS_BASE}/${py3_inc}"
|
|
fi
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl)
|
|
vsed -e 's/pow10/pow_10/g' -i kitty/parser.c;;
|
|
esac
|
|
python3 setup.py linux-package --prefix=${DESTDIR}/usr --verbose
|
|
}
|
|
|
|
do_install() {
|
|
vsconf $(find ${DESTDIR}/usr/share/doc/kitty/html/_downloads/ -name "kitty.conf")
|
|
}
|
|
|
|
kitty-terminfo_package() {
|
|
short_desc+=" - terminfo data"
|
|
archs=noarch
|
|
pkg_install() {
|
|
vmove usr/share/terminfo
|
|
}
|
|
}
|