aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-22 10:09:45 +0200
committerDanilo M. <danix@danix.xyz>2026-09-22 10:09:45 +0200
commitcf371be6c7b6d112c8f89d286ddb4b4688a91136 (patch)
tree2a8bf22794a08ef4965254e1fbb8880eb9ffc71c
parentbabe51cc598319a3abe1da0affb5a34d4ef6be13 (diff)
downloadmy-slackbuilds-cf371be6c7b6d112c8f89d286ddb4b4688a91136.tar.gz
my-slackbuilds-cf371be6c7b6d112c8f89d286ddb4b4688a91136.zip
kitty: add version 0.49.0
Take over maintenance of a local copy of the SBo kitty package, built from the official upstream release tarballs on GitHub instead of the SBo maintainer's self-hosted mirror. Changes against the SBo script: - VERSION 0.38.1 -> 0.49.0 - DOWNLOAD points at github.com/kovidgoyal/kitty releases - MAINTAINER/EMAIL set to danix - drop librsync from REQUIRES: upstream 0.49 no longer links it, the rsync kitten uses its own implementation on top of libxxhash, which ships in Slackware - drop google-go-lang from REQUIRES: go is a base system package on -current The build itself is unchanged; setup.py still accepts linux-package, --libdir-name and --ignore-compiler-warnings, and the tarball still ships prebuilt man pages and html docs. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
-rw-r--r--.extras/nvchecker.toml6
-rw-r--r--kitty/README12
-rw-r--r--kitty/doinst.sh9
-rw-r--r--kitty/kitty.SlackBuild112
-rw-r--r--kitty/kitty.info10
-rw-r--r--kitty/slack-desc19
6 files changed, 168 insertions, 0 deletions
diff --git a/.extras/nvchecker.toml b/.extras/nvchecker.toml
index def12c0..710ae74 100644
--- a/.extras/nvchecker.toml
+++ b/.extras/nvchecker.toml
@@ -16,6 +16,12 @@ github = "ggml-org/llama.cpp"
use_latest_release = true
prefix = "v"
+[kitty]
+source = "github"
+github = "kovidgoyal/kitty"
+use_latest_release = true
+prefix = "v"
+
[kvantum-qt6]
source = "github"
github = "tsujan/Kvantum"
diff --git a/kitty/README b/kitty/README
new file mode 100644
index 0000000..b038ff2
--- /dev/null
+++ b/kitty/README
@@ -0,0 +1,12 @@
+kitty (fast, featureful, GPU-based terminal emulator)
+
+kitty is a terminal emulator for X11 and Wayland [1], which offloads
+the rendering to the GPU [2] and supports modern terminal features. It
+also supports tiling multiple terminal windows without using an extra
+program like screen or tmux.
+
+[1] For Wayland support, it may be necessary to add the following
+ line to ~/.config/kitty/kitty.conf:
+ linux_display_server wayland
+
+[2] Requires hardware-accelerated OpenGL support.
diff --git a/kitty/doinst.sh b/kitty/doinst.sh
new file mode 100644
index 0000000..3e5691a
--- /dev/null
+++ b/kitty/doinst.sh
@@ -0,0 +1,9 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/kitty/kitty.SlackBuild b/kitty/kitty.SlackBuild
new file mode 100644
index 0000000..6689c03
--- /dev/null
+++ b/kitty/kitty.SlackBuild
@@ -0,0 +1,112 @@
+#!/bin/bash
+
+# Slackware build script for kitty
+
+# Originally written by B. Watson (email removed)
+# Maintained by Danilo M. <danix@danix.xyz> from v0.49.0 on, building from
+# the official upstream release tarballs.
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+# 20260922 danix: update for v0.49.0, fetch sources from upstream GitHub
+# releases, drop librsync from REQUIRES (upstream now uses
+# its own rsync implementation with libxxhash, which ships
+# in Slackware), drop google-go-lang (go is in the base
+# system on -current).
+# 20230720 bkw: hand over maintenance to Eugen Wissner.
+# 20221228 bkw: update for v0.26.5, fix sbopkglint gripes.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=kitty
+VERSION=${VERSION:-0.49.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+cd $PRGNAM-$VERSION
+
+chown -R root:root .
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+
+# Note to self: don't use the Makefile, it just runs setup.py but
+# doesn't give us a way to pass options to it.
+
+# sed surgery: setup.py allows overriding the compiler flags, but
+# puts a -O3 *after* whatever we set them to. All our SLKCFLAGS
+# choices have -O2.
+
+sed -i 's,-O3,-O2,g' setup.py
+
+# The -Wl,-s makes the linker strip the binaries.
+# --ignore-compiler-warnings is needed to turn off -Werror.
+
+OVERRIDE_CPPFLAGS="$SLKCFLAGS -Wl,-s" \
+OVERRIDE_CFLAGS="$SLKCFLAGS -Wl,-s" \
+ python3 setup.py \
+ --libdir-name lib$LIBDIRSUFFIX \
+ --verbose linux-package \
+ --ignore-compiler-warnings
+
+mkdir -p $PKG/usr/bin $PKG/usr/share $PKG/usr/lib$LIBDIRSUFFIX
+cp -a linux-package/bin/* $PKG/usr/bin
+cp -a linux-package/share/* $PKG/usr/share
+cp -a linux-package/lib*/* $PKG/usr/lib$LIBDIRSUFFIX
+strip $PKG/usr/bin/$PRGNAM
+
+mv $PKG/usr/share/man $PKG/usr/man
+gzip $PKG/usr/man/man?/*.?
+
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+mv $PKG/usr/share/doc/$PRGNAM/html $PKGDOC
+rm -rf $PKG/usr/share/doc/
+find $PKGDOC/html -type f -a -empty | xargs rm
+cp -a CHANGELOG* CONTRIBUTING* README* LICENSE* $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/kitty/kitty.info b/kitty/kitty.info
new file mode 100644
index 0000000..6e71e57
--- /dev/null
+++ b/kitty/kitty.info
@@ -0,0 +1,10 @@
+PRGNAM="kitty"
+VERSION="0.49.0"
+HOMEPAGE="https://sw.kovidgoyal.net/kitty/"
+DOWNLOAD="https://github.com/kovidgoyal/kitty/releases/download/v0.49.0/kitty-0.49.0.tar.xz"
+MD5SUM="bc5264a525333e545bca66b2fe2baf8b"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="simde ttf-nerd-fonts-symbols"
+MAINTAINER="danix"
+EMAIL="danix@danix.xyz"
diff --git a/kitty/slack-desc b/kitty/slack-desc
new file mode 100644
index 0000000..7d5c2b8
--- /dev/null
+++ b/kitty/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+kitty: kitty (fast, featureful, GPU-based terminal emulator)
+kitty:
+kitty: kitty is a terminal emulator for X11 and Wayland, which offloads the
+kitty: rendering to the GPU and supports modern terminal features. It also
+kitty: supports tiling multiple terminal windows without using an extra
+kitty: program like screen or tmux.
+kitty:
+kitty: Homepage: https://sw.kovidgoyal.net/kitty/
+kitty:
+kitty:
+kitty: