From 08d6d270b2e380f5464280e6106b77fd6495b161 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 27 May 2024 09:44:03 +0200 Subject: [PATCH] kitty Signed-off-by: Gwenhael Le Moine --- xap/kitty/SlackBuild | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/xap/kitty/SlackBuild b/xap/kitty/SlackBuild index 394f1f19..7f055acb 100755 --- a/xap/kitty/SlackBuild +++ b/xap/kitty/SlackBuild @@ -11,7 +11,7 @@ GITHUB_REPO=kovidgoyal/kitty VERSION=${VERSION:-latest} ARCH=$(uname -m) -BUILD=1 +BUILD=2 PKG=$TMP/pkg-$PRGNAM @@ -47,7 +47,11 @@ cp -R "$REPOSITORY" "$TMP"/"$PRGNAM" cd "$TMP"/"$PRGNAM"/ || exit 1 [ "$VERSION" == "latest" ] && VERSION=$(git tag --sort=-taggerdate | head -n1) [ "$VERSION" == "" ] && VERSION=trunk -[ "$VERSION" == "trunk" ] && VERSION="git_r$(git rev-list --count HEAD)_$(git log -1 --format=%h)" # || git checkout $VERSION +if [ "$VERSION" == "trunk" ]; then + VERSION="git_r$(git rev-list --count HEAD)_$(git log -1 --format=%h)" +else + git checkout "$VERSION" +fi # installation mkdir -p "$PKG"/ @@ -64,14 +68,17 @@ OVERRIDE_CPPFLAGS="$SLKCFLAGS -Wl,-s" \ --verbose linux-package \ --ignore-compiler-warnings -#mv linux-package "$PKG"/usr - 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" +mkdir -p "$PKG$PREFIX"/share/bash-completion/completions +cp extra/completions/alacritty.bash "$PKG$PREFIX"/share/bash-completion/completions/alacritty + +mkdir -p "$PKG$PREFIX"/share/zsh/site-functions +cp "$PKG/usr/lib$LIBDIRSUFFIX"/kitty/shell-integration/zsh/completions/_kitty "$PKG$PREFIX"/share/zsh/site-functions/ mkdir -p "$PKG"/usr/doc/"$PRGNAM" cp -R ./*.md ./*.rst LICENSE "$PKG"/usr/doc/"$PRGNAM" @@ -84,7 +91,7 @@ chown -R root:root ./* mkdir -p "$PKG"/install cat < "$PKG"/install/slack-desc -$PRGNAM: $PRGNAM (A cross-platform, fast, feature full, GPU based terminal emulator) +$PRGNAM: $PRGNAM (The fast, feature-rich, GPU based terminal emulator) $PRGNAM: $PRGNAM: $PRGNAM: