void-packages/srcpkgs/alacritty/template

28 lines
769 B
Bash

# Template file for 'alacritty'
pkgname=alacritty
version=0.1.0.20170417
revision=1
_commit=d372f2e591020b5824797db826159351d19c3906
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=a78476e49270212c138551a6644ba17ad3eabb7567c9ca5407392b0f0093e54a
nocross=yes
do_build() {
cargo build --release
}
do_install() {
vbin target/release/$pkgname
vinstall Alacritty.desktop 644 usr/share/applications
vlicense LICENSE-APACHE LICENSE
}