41 lines
1.6 KiB
Bash
41 lines
1.6 KiB
Bash
# Template file for 'alacritty'
|
|
pkgname=alacritty
|
|
version=0.10.0
|
|
revision=1
|
|
build_wrksrc="${pkgname}"
|
|
build_style=cargo
|
|
hostmakedepends="pkg-config python3"
|
|
makedepends="freetype-devel fontconfig-devel libxcb-devel libxkbcommon-devel"
|
|
depends="libXi libXxf86vm ncurses alacritty-terminfo-${version}_${revision}"
|
|
short_desc="Cross-platform, GPU-accelerated terminal emulator"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/alacritty/alacritty"
|
|
changelog="https://raw.githubusercontent.com/alacritty/alacritty/master/CHANGELOG.md"
|
|
distfiles="${homepage}/archive/v${version}.tar.gz"
|
|
checksum=5dee9c94f944b742b0189dd87c43c87175ffadde8049abb4668ca5a3e68fd65a
|
|
nocross="IndexMap/autocfg/rust issues - #34889"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc64*) ;;
|
|
ppc*) broken="ftbfs: thread 'main' panicked at 'slice index starts at 4289555962 but ends at 114', /builddir/rustc-1.46.0-src/src/libstd/io/mod.rs:396:27";;
|
|
esac
|
|
|
|
post_install() {
|
|
vinstall ../extra/linux/Alacritty.desktop 644 usr/share/applications
|
|
vinstall ../extra/logo/alacritty-term.svg 644 usr/share/pixmaps Alacritty.svg
|
|
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
|
|
vman ../extra/alacritty.man alacritty.1
|
|
vsconf ../alacritty.yml
|
|
}
|
|
|
|
alacritty-terminfo_package() {
|
|
short_desc+=" - terminfo data"
|
|
depends="ncurses"
|
|
pkg_install() {
|
|
vmove usr/share/terminfo
|
|
}
|
|
}
|