makedeb


wezterm-bin 20240203-4


WezTerm is a GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for wezterm-bin.

# Maintainer: Jonathan Apodaca <jrapodaca@gmail.com>
# vim: set sw=4 expandtab:

pkgver_=20240203-110809-5046fc22
pkgver=20240203

_ubuntu_ver() {
  if grep 22 /etc/issue >/dev/null; then
    echo "22.04"
  elif grep 21 /etc/issue >/dev/null; then
    echo "20.04"
  elif grep 20 /etc/issue >/dev/null; then
    echo "20.04"
  elif grep 19 /etc/issue >/dev/null; then
    echo "18.04"
  elif grep 18 /etc/issue >/dev/null; then
    echo "18.04"
  fi
}
_source() {
  uv=$(_ubuntu_ver)
  echo "https://github.com/wez/wezterm/releases/download/$pkgver_/wezterm-$pkgver_.Ubuntu$uv.deb"
}
_sha256sums() {
  uv=$(_ubuntu_ver)
  if test "$uv" = "22.04"; then
    echo 86358dab5794a4fb63f7c91dd68d4fdc3da58faad648a58fc77d2bd51c7b0686
  elif test "$uv" = "20.04"; then
    echo affeaa12ebd44320f72f86e8cbffa31bb67366a4d0be2ebc98bab977544674b2
  elif test "$uv" = "18.04"; then
    echo 0019dfc4b32d63c1392aa264aed2253c1e0c2fb09216f8e2cc269bbfb8bb49b5
  fi
}

pkgname=wezterm-bin
pkgrel=4
pkgdesc='WezTerm is a GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust'
arch=(amd64)
provides=(wezterm)
conflicts=(wezterm)
license=(MIT)
url='https://wezfurlong.org/'
extensions=('zipman')
source=(
  $(_source)
)
sha256sums=(
  $(_sha256sums)
)

prepare() {
  tar -xf data.tar.zst
}

package() {
  cp -r "$srcdir/usr/" "$pkgdir/"
}