From 673cc6507b736cd61e3f7d65200b7034513060bd Mon Sep 17 00:00:00 2001 From: sirkhancision Date: Mon, 3 Apr 2023 00:47:37 -0300 Subject: [PATCH] kitty: update to 0.27.1. --- srcpkgs/kitty-kitten | 1 + srcpkgs/kitty-shell-integration | 1 + srcpkgs/kitty/template | 40 ++++++++++++++++++++++++--------- 3 files changed, 32 insertions(+), 10 deletions(-) create mode 120000 srcpkgs/kitty-kitten create mode 120000 srcpkgs/kitty-shell-integration diff --git a/srcpkgs/kitty-kitten b/srcpkgs/kitty-kitten new file mode 120000 index 000000000000..659fb6b426aa --- /dev/null +++ b/srcpkgs/kitty-kitten @@ -0,0 +1 @@ +kitty \ No newline at end of file diff --git a/srcpkgs/kitty-shell-integration b/srcpkgs/kitty-shell-integration new file mode 120000 index 000000000000..659fb6b426aa --- /dev/null +++ b/srcpkgs/kitty-shell-integration @@ -0,0 +1 @@ +kitty \ No newline at end of file diff --git a/srcpkgs/kitty/template b/srcpkgs/kitty/template index 90eb7261085c..48e790a943fc 100644 --- a/srcpkgs/kitty/template +++ b/srcpkgs/kitty/template @@ -1,33 +1,38 @@ # Template file for 'kitty' pkgname=kitty -version=0.26.5 -revision=2 +version=0.27.1 +revision=1 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}" +hostmakedepends="go pkg-config python3 wayland-devel wayland-protocols" +makedepends="dbus-devel fontconfig-devel freetype-devel gettext-devel glfw-devel harfbuzz-devel lcms2-devel libXcursor-devel libXi-devel libXinerama-devel libXrandr-devel libcanberra-devel libpng-devel librsync-devel librsync-devel libxcb-devel libxkbcommon-devel openssl-devel ncurses-devel python3-devel python3-setuptools wayland-devel wayland-protocols zlib-devel" +depends="kitty-terminfo-${version}_${revision} kitty-shell-integration-${version}_${revision} python3-Pygments" +checkdepends="dejavu-fonts-ttf python3-pytest" short_desc="Modern, hackable, featureful, OpenGL based terminal emulator" maintainer="Benjamin Slade " -license="GPL-3.0-or-later" +license="GPL-3.0-only" 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=5544a580314fec7711187ce28162909b5ecff6780071444fe96fb97f8be5c9ad +checksum=e57672c5ba1973be139548eb772ff13d79c29b0ed67cbbe4418c87b6f1b1a901 python_version=3 LDFLAGS+=" -Wl,-z,stack-size=2097152" +nopie_files="/usr/bin/kitten" # 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";; +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 + python3 setup.py linux-package --prefix=${DESTDIR}/usr --update-check-interval=0 --ignore-compiler-warnings --verbose +} + +do_check() { + pytest -v --ignore kitty_tests/file_transmission.py kitty_tests/crypto.py } do_install() { @@ -36,7 +41,22 @@ do_install() { kitty-terminfo_package() { short_desc+=" - terminfo data" + depends="ncurses" pkg_install() { vmove usr/share/terminfo } } + +kitty-shell-integration_package() { + short_desc+=" - shell integration scripts" + pkg_install() { + vmove usr/lib/kitty/shell-integration + } +} + +kitty-kitten_package() { + short_desc+=" - standalone executable" + pkg_install() { + vmove usr/bin/kitten + } +}