alacritty: package completions, man page, sample config, and terminfo

This commit is contained in:
Aluísio Augusto Silva Gonçalves 2018-05-25 15:25:37 -03:00 committed by Enno Boland
parent fe51e97ea7
commit a53b524397
4 changed files with 29 additions and 2 deletions

1
srcpkgs/alacritty-terminfo Symbolic link
View file

@ -0,0 +1 @@
alacritty

View file

@ -0,0 +1,6 @@
case "$ACTION" in
post)
# Compile the terminfo description.
tic -sx usr/share/terminfo/a/alacritty.info
;;
esac

7
srcpkgs/alacritty/REMOVE Normal file
View file

@ -0,0 +1,7 @@
case "$ACTION" in
pre)
# Remove compiled terminfo files.
rm -f usr/share/terminfo/a/alacritty-256color
rm -f usr/share/terminfo/a/alacritty
;;
esac

View file

@ -1,12 +1,12 @@
# Template file for 'alacritty' # Template file for 'alacritty'
pkgname=alacritty pkgname=alacritty
version=0.1.0.20180705 version=0.1.0.20180705
revision=1 revision=2
_commit=7433f45ff9c6efeb48e223e90dd4aa9ee135b5e8 _commit=7433f45ff9c6efeb48e223e90dd4aa9ee135b5e8
wrksrc="${pkgname}-${_commit}" wrksrc="${pkgname}-${_commit}"
hostmakedepends="rust cargo cmake pkg-config" hostmakedepends="rust cargo cmake pkg-config"
makedepends="freetype-devel fontconfig-devel" makedepends="freetype-devel fontconfig-devel"
depends="libXxf86vm xclip" depends="libXxf86vm xclip ncurses"
short_desc="A cross-platform, GPU-accelerated terminal emulator" short_desc="A cross-platform, GPU-accelerated terminal emulator"
maintainer="Andrea Brancaleoni <abc@pompel.me>" maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="Apache-2.0" license="Apache-2.0"
@ -23,5 +23,18 @@ do_build() {
do_install() { do_install() {
vbin target/release/$pkgname vbin target/release/$pkgname
vinstall alacritty.desktop 644 usr/share/applications 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 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
}
} }