alacritty: generate terminfo when building

This commit also fixes a xlint warning about including the specific
version of autocfg in cargo update.
This commit is contained in:
meator 2022-07-21 19:58:31 +02:00 committed by classabbyamp
parent f0e49a7db3
commit 37251949d2
3 changed files with 2 additions and 16 deletions

View File

@ -1,6 +0,0 @@
case "$ACTION" in
post)
# Compile the terminfo description.
tic -xe alacritty,alacritty-direct usr/share/terminfo/a/alacritty.info
;;
esac

View File

@ -1,7 +0,0 @@
case "$ACTION" in
pre)
# Remove compiled terminfo files.
rm -f usr/share/terminfo/a/alacritty
rm -f usr/share/terminfo/a/alacritty-direct
;;
esac

View File

@ -17,7 +17,7 @@ checksum=e48d4b10762c2707bb17fd8f89bd98f0dcccc450d223cade706fdd9cfaefb308
post_patch() {
# fixes an indexmap error when cross compiling
cargo update --package autocfg --precise 1.1.0
cargo update --package autocfg:1.0.1 --precise 1.1.0
}
case "$XBPS_TARGET_MACHINE" in
@ -31,14 +31,13 @@ post_install() {
vinstall ../extra/completions/alacritty.bash 644 usr/share/bash-completion/completions alacritty
vinstall ../extra/completions/_alacritty 644 usr/share/zsh/site-functions
vinstall ../extra/completions/alacritty.fish 644 usr/share/fish/vendor_completions.d
vinstall ../extra/alacritty.info 644 usr/share/terminfo/a
tic -o ${DESTDIR}/usr/share/terminfo -xe alacritty,alacritty-direct ../extra/alacritty.info
vman ../extra/alacritty.man alacritty.1
vsconf ../alacritty.yml
}
alacritty-terminfo_package() {
short_desc+=" - terminfo data"
depends="ncurses"
pkg_install() {
vmove usr/share/terminfo
}