void-packages/srcpkgs/alacritty/template

47 lines
1.4 KiB
Bash

# Template file for 'alacritty'
pkgname=alacritty
version=0.2.0
revision=1
hostmakedepends="cargo cmake pkg-config"
makedepends="freetype-devel fontconfig-devel"
depends="libXxf86vm xclip ncurses"
short_desc="Cross-platform, GPU-accelerated terminal emulator"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="Apache-2.0"
homepage="https://github.com/jwilm/${pkgname}"
changelog="https://raw.githubusercontent.com/jwilm/${pkgname}/v${version}/CHANGELOG.md"
distfiles="https://github.com/jwilm/${pkgname}/archive/v${version}.tar.gz"
checksum=b45c3cb26b529b381593ca99712e31b4cf88f438c2435434062408462611e501
nocross=yes
case "${XBPS_TARGET_MACHINE}" in
i686)
broken="Alacritty v0.2.0 is broken on i686
Build log: https://travis-ci.org/void-linux/void-packages/jobs/429814888
Issue: https://github.com/jwilm/alacritty/issues/1552";
;;
esac
do_build() {
cargo build --release ${makejobs}
}
do_install() {
vbin target/release/$pkgname
vinstall alacritty.desktop 644 usr/share/applications
vinstall alacritty-completions.zsh 644 usr/share/zsh/site-functions _alacritty
vinstall alacritty-completions.fish 644 usr/share/fish/completions alacritty.fish
vinstall alacritty.info 644 usr/share/terminfo/a
vlicense LICENSE-APACHE LICENSE
vman alacritty.man alacritty.1
vsconf alacritty.yml
}
alacritty-terminfo_package() {
short_desc+=" - terminfo data"
noarch=yes
pkg_install() {
vmove usr/share/terminfo
}
}