aboutsummaryrefslogblamecommitdiffstats
path: root/community/alacritty/APKBUILD
blob: 31ab743c364e4376d4aa0d8240b2fb6586777496 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                          

            

                                                             
                                                                     
                    
                               
             

                                                                                 

                    


                                
         
             
                                                                                           
         



                                                



                                       



                                            
                                                                           
                                                                                   
                                                                          
 



                                                            
                                
                                                                                        
                                                                                              



                                                                                





                                                                          

 
 


                                                                                                                                                        
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=alacritty
pkgver=0.8.0
pkgrel=0
pkgdesc="A cross-platform, GPU-accelerated terminal emulator"
url="https://github.com/jwilm/alacritty"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # limited by rust/cargo
license="Apache-2.0"
depends="ncurses-terminfo-base"
makedepends="
	rust cargo cmake fontconfig-dev freetype-dev pkgconfig libxcb-dev python3
	"
subpackages="
	$pkgname-doc
	$pkgname-bash-completion
	$pkgname-fish-completion
	$pkgname-zsh-completion
	"
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/jwilm/alacritty/archive/v$pkgver.tar.gz
	"
export CARGO_HOME="$srcdir"/cargo
export RUSTFLAGS="-C target-feature=-crt-static"

build() {
	cargo build --release --verbose
}

check() {
	cargo test --all --release --verbose
}

package() {
	install -Dm755 target/release/alacritty "$pkgdir"/usr/bin/alacritty
	install -Dm644 extra/alacritty.man "$pkgdir"/usr/share/man/man1/alacritty.1
	install -Dm644 alacritty.yml "$pkgdir"/etc/alacritty/alacritty.yml

	# Install addition documentation files.
	install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname \
		README.md CHANGELOG.md docs/*

	# Install desktop files.
	install -Dm644 extra/linux/Alacritty.desktop -t "$pkgdir"/usr/share/applications
	install -Dm644 extra/logo/alacritty-term.svg "$pkgdir"/usr/share/pixmaps/Alacritty.svg
	install -Dm644 extra/linux/io.alacritty.Alacritty.appdata.xml \
		"$pkgdir"/usr/share/metainfo/io.alacritty.Alacritty.metainfo.xml

	# Install completion files.
	install -Dm644 extra/completions/alacritty.bash \
		"$pkgdir"/usr/share/bash-completion/completions/"$pkgname"
	install -Dm644 extra/completions/alacritty.fish \
		"$pkgdir"/usr/share/fish/completions/"$pkgname".fish
	install -Dm644 extra/completions/_alacritty \
		"$pkgdir"/usr/share/zsh/site-functions/_"$pkgname"
}


sha512sums="
723addc3f1e91043c75bb2fb631cafb73b0ce14916d40240fdc14b9f5a5284e5caa74a59dcbe0ff572de35079db068c0e20932f769b1e4382c5a0eb48f70d2f7  alacritty-0.8.0.tar.gz
"