void-packages/srcpkgs/alacritty/template
2019-01-20 01:51:01 -02:00

37 lines
1.2 KiB
Bash

# Template file for 'alacritty'
pkgname=alacritty
version=0.2.6
revision=1
build_style=cargo
hostmakedepends="cmake pkg-config"
makedepends="freetype-devel fontconfig-devel"
depends="libXxf86vm xclip 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/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=af0ee0409a8e8ba5d7c492b2e9347c3e5fbdb2cd7a49ee8f16abeb44afcfbe3f
case "$XBPS_TARGET_MACHINE" in
aarch64-musl) broken="MAP_32BIT; not found in libc" ;;
esac
post_install() {
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
}
}