void-packages/srcpkgs/wezterm/template

64 lines
2.5 KiB
Bash

# Template file for 'wezterm'
pkgname=wezterm
version=20221119
revision=2
_srcver=${version}-145034-49b9839f
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=6ad923d48c76e5175128f40cd70d3a0c9fd2dc3e3f573af44b9c2ae7608ab7c4
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
}
}