diff options
Diffstat (limited to 'community/kitty/APKBUILD')
-rw-r--r-- | community/kitty/APKBUILD | 68 |
1 files changed, 43 insertions, 25 deletions
diff --git a/community/kitty/APKBUILD b/community/kitty/APKBUILD index 425802d5bd2..2f0b6731300 100644 --- a/community/kitty/APKBUILD +++ b/community/kitty/APKBUILD @@ -2,18 +2,19 @@ # Contributor: Jakub Jirutka <jakub@jirutka.cz> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=kitty -pkgver=0.24.1 -pkgrel=0 +pkgver=0.31.0 +pkgrel=4 pkgdesc="Modern, hackable, featureful, OpenGL based terminal emulator" url="https://sw.kovidgoyal.net/kitty/" -arch="all !mips !mips64" # fails to build on mips +arch="all" license="GPL-3.0-only" -depends="less ncurses ncurses-terminfo-base py3-pygments" -checkdepends="ttf-dejavu" +depends="less ncurses py3-pygments $pkgname-terminfo" +checkdepends="font-dejavu py3-pytest" makedepends=" dbus-dev fontconfig-dev freetype-dev + go harfbuzz-dev lcms2-dev libcanberra-dev @@ -25,42 +26,40 @@ makedepends=" libxkbcommon-dev libxrandr-dev mesa-dev + openssl-dev py3-setuptools python3-dev wayland-dev wayland-protocols + xxhash-dev zlib-dev " install="$pkgname.post-install $pkgname.post-upgrade" -subpackages="$pkgname-wayland $pkgname-x11" +subpackages="$pkgname-wayland $pkgname-x11 $pkgname-kitten $pkgname-pyc $pkgname-terminfo" source="$pkgname-$pkgver.tar.gz::https://github.com/kovidgoyal/kitty/archive/v$pkgver.tar.gz - fix-ppc64le-build-ioctl-with-musl.patch disable-docs.patch - remove-failing-test.patch " - -prepare() { - default_prepare - - # Fix python shebangs. - find -type f -name '*.py' -exec sed -Ei 's|/usr/bin/env python3?|/usr/bin/python3|g' '{}' \; -} +options="net" # go build build() { # See https://github.com/void-linux/void-packages/issues/7975. export LDFLAGS="$LDFLAGS -Wl,-z,stack-size=2097152" - + export CFLAGS="$CFLAGS -flto=auto -Wno-error=overflow" python3 setup.py linux-package \ - --update-check-interval=0 \ - --verbose + --ignore-compiler-warnings \ + --update-check-interval=0 } check() { - PATH="$builddir/linux-package/bin:$PATH" python3 setup.py test + pytest -v --ignore kitty_tests/file_transmission.py kitty_tests/crypto.py } package() { - python3 setup.py linux-package --prefix "$pkgdir/usr" + mkdir -p "$pkgdir" + cp -r linux-package "$pkgdir"/usr/ + + # remove useless "optimised" python + find "$pkgdir" \( -name "*.opt-1.pyc" -o -name "*.opt-2.pyc" \) -delete } wayland() { @@ -74,14 +73,33 @@ wayland() { x11() { pkgdesc="Kitty GLFW backend for X11" depends="$pkgname=$pkgver-r$pkgrel" - install_if="$pkgname=$pkgver-r$pkgrel libx11" + install_if="$pkgname=$pkgver-r$pkgrel xorg-server" amove usr/lib/kitty/kitty/glfw-x11.so } +kitten() { + pkgdesc="Kitty Kitten client" + depends="" + + amove usr/bin/kitten +} + +pyc() { + default_pyc + local IFS=' +' + # shellcheck disable=2046 + amove $(find usr/lib/kitty -type d -name __pycache__) +} + +terminfo() { + depends="" + + amove usr/share/terminfo/x +} + sha512sums=" -3ecca3e8812dae5713f89d6f10514b4103a4708c901aee592867b588d822ec06128da552ed1c9acf5893ae51dabd7d6064a0b3a554403302f1369fc19c836fc9 kitty-0.24.1.tar.gz -330f56f5fd60607c57f4f2cffdf33768b3af9e4c3e271a60a05cc3c653d70f7402af91ba0cdfe0257c8b4779884a6440eb52496078bce11799aaa1829ced9245 fix-ppc64le-build-ioctl-with-musl.patch -20f32d69bc3ecef2b705a52876e46190926d7151d07edfc3d808f6e069add311add401db95186f05ca39fe6ccaf5b8642813a9cf5626020c10dde407f852d47b disable-docs.patch -6978f874d22eed0091400b2480282779c79956f5235201e6989f0b42fdb27140fcb44aa070b607b177137fb6537f4f6e8ed52f5ca24181fd52f9b0f562b69998 remove-failing-test.patch +9224852e779a542d3fdc28a4c9be41818a267f54f9c5651831b1d261896f5ed6e5cd41b5ec439d3ed8e21239aa1b5bec4d2fecc3af6128400c65234b4d87b2cd kitty-0.31.0.tar.gz +1676b3d5272c14561660ccb7b89c30b65b6c044b4ce0f57ba4fe88d3c4aefe3becf480a70b593602d907c501cb785ae7481c612ce125610fecc751e2d31f8a7c disable-docs.patch " |