aboutsummaryrefslogtreecommitdiffstats
path: root/community/alacritty/APKBUILD
blob: 030dda7983add73422ae330d3e67df232ba09c9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=alacritty
pkgver=0.7.1
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 -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 -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="f3f6c43d91e9752d9c364205bcd15d6f5273100d102825cb14050bb12645efa071e6fabb8b8f58bfb688083ba65add0bdd8afde5845fe8478d678f498aaf1fd8  alacritty-0.7.1.tar.gz"