void-packages/srcpkgs/alacritty/template
2018-09-07 20:32:47 +02:00

39 lines
1.2 KiB
Bash

# Template file for 'alacritty'
pkgname=alacritty
version=0.1.0.20180902
revision=1
_commit=865727c062810e29fa33b5c04bb05510e7da3ddf
wrksrc="${pkgname}-${_commit}"
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/alacritty"
distfiles="${homepage}/archive/${_commit}.tar.gz"
checksum=30c7f4ae6964e8009f5b6e2741f7df25f0e527f7be9f9a1751af8e6ba1c08d26
nocross=yes
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
}
}