Initial public release of Warp.
Repo-Sync-Origin: warpdotdev/warp-internal@12af1d983b
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
pkgname=warp-terminal@@CHANNEL_SUFFIX@@
|
||||
pkgver=@@VERSION@@
|
||||
pkgrel=@@RELEASE@@
|
||||
pkgdesc="Warp, the Rust-based terminal for developers and teams"
|
||||
arch=('@@ARCH@@')
|
||||
url="https://warp.dev"
|
||||
license=('custom')
|
||||
depends=(
|
||||
'curl'
|
||||
'default-cursors'
|
||||
'fontconfig'
|
||||
'libegl'
|
||||
'libx11'
|
||||
'libxcb'
|
||||
'libxcursor'
|
||||
'libxi'
|
||||
'libxkbcommon-x11'
|
||||
'opengl-driver'
|
||||
'xdg-utils'
|
||||
'zlib'
|
||||
)
|
||||
optdepends=(
|
||||
'adwaita-cursors: for if there is no default cursor installed'
|
||||
'zenity: for file dialogs in Gnome'
|
||||
'kdialog: for file dialogs in KDE'
|
||||
'org.freedesktop.secrets: for securely storing passwords'
|
||||
)
|
||||
# Don't perform additional stripping of binaries; we already do the amount of
|
||||
# stripping we want as part of the bundle_install script.
|
||||
options=('!strip')
|
||||
source=(
|
||||
'data.tar'
|
||||
"$pkgname.sh"
|
||||
)
|
||||
|
||||
package() {
|
||||
# Unpack the base package into the output directory.
|
||||
bsdtar -xf data.tar -C "$pkgdir/"
|
||||
|
||||
# Copy the shell script that launches the application.
|
||||
install -Dm755 $pkgname.sh "$pkgdir"/usr/bin/$pkgname
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
|
||||
|
||||
# Allow users to override command-line options
|
||||
if [[ -f $XDG_CONFIG_HOME/warp-terminal@@CHANNEL_SUFFIX@@-flags.conf ]]; then
|
||||
WARP_USER_FLAGS="$(grep -v '^#' $XDG_CONFIG_HOME/warp-terminal@@CHANNEL_SUFFIX@@-flags.conf)"
|
||||
fi
|
||||
|
||||
# Launch
|
||||
exec /opt/warpdotdev/warp-terminal@@CHANNEL_SUFFIX@@/@@BINARY_NAME@@ $WARP_USER_FLAGS "$@"
|
||||
Reference in New Issue
Block a user