void-packages/srcpkgs/kitty/template
Alessio Sergi 1d3d25aeec kitty: add missing pycompile_dirs
So, python_version -> pycompile_version.
2018-09-15 12:56:57 +02:00

40 lines
1.2 KiB
Bash

# Template file for 'kitty'
pkgname=kitty
version=0.12.1
revision=2
pycompile_version="$py3_ver"
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/"
distfiles="https://github.com/kovidgoyal/kitty/releases/download/v${version}/kitty-${version}.tar.xz"
checksum=ed5c18fe388e2bf569497443935eb60b0dbe971094e94fa3b0f4c442055c7915
do_build() {
if [ -n "$CROSS_BUILD" ]; then
export CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
sed -i "s|-fpie|-fpie ${CFLAGS}|g" setup.py
fi
case "$XBPS_TARGET_MACHINE" in
*-musl)
sed -i 's/pow10/pow_10/g' kitty/parser.c;;
esac
python3 setup.py linux-package --prefix=${DESTDIR}/usr --verbose
}
do_install() {
vsconf ${DESTDIR}/usr/share/doc/kitty/html/_downloads/kitty.conf
}
kitty-terminfo_package() {
short_desc+=" - terminfo data"
noarch=yes
pkg_install() {
vmove usr/share/terminfo
}
}