void-packages/srcpkgs/wezterm/template

68 lines
2.6 KiB
Bash

# Template file for 'wezterm'
pkgname=wezterm
version=20230408
revision=1
_srcver=${version}-112425-69ae8472
archs="x86_64* i686* aarch64* arm*" # ring
build_style=cargo
configure_args="--no-default-features --features wezterm-gui/distro-defaults,wezterm-gui/wayland"
hostmakedepends="pkg-config"
makedepends="fontconfig-devel freetype-devel harfbuzz-devel openssl-devel
libssh2-devel libX11-devel libxkbcommon-devel wayland-devel xcb-util-devel
xcb-util-image-devel xcb-util-keysyms-devel xcb-util-wm-devel"
depends="noto-fonts-emoji fonts-roboto-ttf"
short_desc="GPU-accelerated cross-platform terminal emulator and multiplexer"
maintainer="Joseph Benden <joe@benden.us>"
license="MIT"
homepage="https://wezfurlong.org/wezterm/"
changelog="https://wezfurlong.org/wezterm/changelog.html"
distfiles="https://github.com/wez/wezterm/releases/download/${_srcver}/wezterm-${_srcver}-src.tar.gz"
checksum=8f5c15db8341b0c067d7a5f6f06d4af17d5c24526e908eac4bd70156cd565800
post_patch() {
cargo update
}
do_check() {
# NOTE: cannot use build_style cargo do_check because of --release flag.
# NOTE: e2e::sftp is skipped due to missing ssh
# NOTE: escape::action_size has bad size due to discriminate
# NOTE: surface::line::storage::test::memory_usage has bad size due to discriminate
cargo test --target ${RUST_TARGET} --workspace --locked -- \
--skip e2e::sftp \
--skip escape::action_size \
--skip surface::line::storage::test::memory_usage \
--skip shapecache::test::ligatures_fira \
--skip shapecache::test::ligatures_jetbrains
}
do_install() {
vbin target/${RUST_TARGET}/release/wezterm
vbin target/${RUST_TARGET}/release/wezterm-gui
vbin target/${RUST_TARGET}/release/wezterm-mux-server
vbin target/${RUST_TARGET}/release/strip-ansi-escapes
vinstall assets/shell-integration/wezterm.sh 644 etc/profile.d org_wezfurlong_wezterm.sh
vinstall assets/icon/terminal.png 644 usr/share/icons/hicolor/128x128/apps org.wezfurlong.wezterm.png
vinstall assets/icon/wezterm-icon.svg 644 usr/share/icons/hicolor/scalable/apps org.wezfurlong.wezterm.svg
vinstall assets/wezterm.desktop 644 usr/share/applications org.wezfurlong.wezterm.desktop
vinstall assets/wezterm.appdata.xml 644 usr/share/metainfo org.wezfurlong.wezterm.appdata.xml
vcompletion assets/shell-completion/bash bash
vcompletion assets/shell-completion/fish fish
vcompletion assets/shell-completion/zsh zsh
vmkdir usr/share/terminfo
tic -sx -o ${DESTDIR}/usr/share/terminfo termwiz/data/wezterm.terminfo
vdoc README.md
vlicense LICENSE.md
}
wezterm-terminfo_package() {
short_desc+=" - terminfo data"
pkg_install() {
vmove usr/share/terminfo
}
}