diff --git a/system/warp-terminal/README b/system/warp-terminal/README new file mode 100644 index 0000000000..eaa9208859 --- /dev/null +++ b/system/warp-terminal/README @@ -0,0 +1,5 @@ +A blazingly-fast modern Rust based GPU-accelerated terminal +built to make you and your team more productive. + +This script repackages the Debian package provided by Warp +Project. diff --git a/system/warp-terminal/doinst.sh b/system/warp-terminal/doinst.sh new file mode 100644 index 0000000000..1d55db074f --- /dev/null +++ b/system/warp-terminal/doinst.sh @@ -0,0 +1,15 @@ +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 -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + +DEST="/bin/warp-terminal" + +if [ ! -L ${DEST} -a ! -e ${DEST} ]; then + /usr/bin/ln -s /opt/warpdotdev/warp-terminal/warp ${DEST} +fi diff --git a/system/warp-terminal/douninst.sh b/system/warp-terminal/douninst.sh new file mode 100644 index 0000000000..edc5d753dc --- /dev/null +++ b/system/warp-terminal/douninst.sh @@ -0,0 +1,5 @@ +DEST="/bin/warp-terminal" + +if [ -L ${DEST} ]; then + /usr/bin/rm -f ${DEST} +fi diff --git a/system/warp-terminal/slack-desc b/system/warp-terminal/slack-desc new file mode 100644 index 0000000000..2d9df236a8 --- /dev/null +++ b/system/warp-terminal/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------------------------------------------------------| +warp-terminal: warp-terminal (Your terminal, reimagined) +warp-terminal: +warp-terminal: warp-terminal - blazingly-fast modern Rust based GPU-accelerated +warp-terminal: terminal built to make you and your team more productive. +warp-terminal: +warp-terminal: Homepage: https://www.warp.dev/ +warp-terminal: +warp-terminal: +warp-terminal: +warp-terminal: +warp-terminal: diff --git a/system/warp-terminal/warp-terminal.SlackBuild b/system/warp-terminal/warp-terminal.SlackBuild new file mode 100644 index 0000000000..4e668e83f4 --- /dev/null +++ b/system/warp-terminal/warp-terminal.SlackBuild @@ -0,0 +1,81 @@ +#!/bin/bash + +# Slackware build script for warp + +# Copyright 2024 Dimitar Nikov, Alfreton, United Kingdom +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=warp-terminal +VERSION=${VERSION:-0.2024.02.20.08.01} +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" != "x86_64" ]; then + echo "$ARCH is not supported." + exit 1 +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $PKG +ar p $CWD/${PRGNAM}_${VERSION}.stable.02_amd64.deb data.tar.xz | tar -xvJ + +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh +cat $CWD/douninst.sh > $PKG/install/douninst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/system/warp-terminal/warp-terminal.info b/system/warp-terminal/warp-terminal.info new file mode 100644 index 0000000000..4266303ab4 --- /dev/null +++ b/system/warp-terminal/warp-terminal.info @@ -0,0 +1,10 @@ +PRGNAM="warp-terminal" +VERSION="0.2024.02.20.08.01" +HOMEPAGE="https://www.warp.dev/" +DOWNLOAD="UNSUPPORTED" +MD5SUM="" +DOWNLOAD_x86_64="https://releases.warp.dev/stable/v0.2024.02.20.08.01.stable_02/warp-terminal_0.2024.02.20.08.01.stable.02_amd64.deb" +MD5SUM_x86_64="2df4c0844ed983ac84a25f2341b77a05" +REQUIRES="%README%" +MAINTAINER="Dimitar Nikov" +EMAIL="dimitar at nikov dot net"