void-packages/srcpkgs/alacritty/template
2019-06-27 09:29:34 +02:00

39 lines
1.4 KiB
Bash

# Template file for 'alacritty'
pkgname=alacritty
version=0.3.3
revision=1
build_style=cargo
hostmakedepends="pkg-config python3"
makedepends="freetype-devel fontconfig-devel libxcb-devel"
depends="libXxf86vm 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=f5af7e0d143bd2b89f029ad3e3d000d3ceb9922fbf189f7cfe3a59c9626d4519
do_install() {
cargo install --path ${pkgname} --target ${RUST_TARGET} --root="${DESTDIR}/usr"
rm "${DESTDIR}"/usr/.crates.toml
}
post_install() {
vinstall extra/linux/alacritty.desktop 644 usr/share/applications
vinstall extra/logo/alacritty-term.svg 644 usr/share/pixmaps Alacritty.svg
vinstall extra/completions/alacritty.bash 644 usr/share/bash-completion/completions alacritty
vinstall extra/completions/_alacritty 644 usr/share/zsh/site-functions
vinstall extra/completions/alacritty.fish 644 usr/share/fish/completions
vinstall extra/alacritty.info 644 usr/share/terminfo/a
vman extra/alacritty.man alacritty.1
vsconf alacritty.yml
}
alacritty-terminfo_package() {
short_desc+=" - terminfo data"
archs=noarch
pkg_install() {
vmove usr/share/terminfo
}
}