void-packages/srcpkgs/alacritty/template

28 lines
775 B
Bash

# Template file for 'alacritty'
pkgname=alacritty
version=0.1.0.20180508
revision=1
_commit=24e8a19e7d981fbc8853891ad4a17a9de2ac36bd
wrksrc="${pkgname}-${_commit}"
hostmakedepends="rust cargo cmake pkg-config"
makedepends="freetype-devel fontconfig-devel"
depends="libXxf86vm xclip"
short_desc="A 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=91d9f6b01770fa3e9ac4da306bbe95eae56819f13cc77668d7dd1ed2874b60b5
nocross=yes
do_build() {
cargo build --release
}
do_install() {
vbin target/release/$pkgname
vinstall Alacritty.desktop 644 usr/share/applications
vlicense LICENSE-APACHE LICENSE
}