diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-07-21 17:01:39 -0400 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-21 18:03:23 -0300 |
commit | cca7a58741d43a12a687a0224d5bcecbc53a52ce (patch) | |
tree | 834b4a155d075c4fc68b7a2acf6efa9b06b24f7d /community | |
parent | 25278cb90ed4bdf0e026ab07301cadd1f4fb1ef7 (diff) | |
download | aports-cca7a58741d43a12a687a0224d5bcecbc53a52ce.tar.bz2 aports-cca7a58741d43a12a687a0224d5bcecbc53a52ce.tar.xz |
community/alacritty: move from testing
Diffstat (limited to 'community')
-rw-r--r-- | community/alacritty/APKBUILD | 68 | ||||
-rw-r--r-- | community/alacritty/ignore-ft-fc-tests-font_mated.patch | 26 |
2 files changed, 94 insertions, 0 deletions
diff --git a/community/alacritty/APKBUILD b/community/alacritty/APKBUILD new file mode 100644 index 0000000000..834c9935c7 --- /dev/null +++ b/community/alacritty/APKBUILD @@ -0,0 +1,68 @@ +# Maintainer: Drew DeVault <sir@cmpwn.com> +pkgname=alacritty +pkgver=0.3.3 +pkgrel=0 +pkgdesc="A cross-platform, GPU-accelerated terminal emulator" +url="https://github.com/jwilm/alacritty" +arch="x86_64" # via Rust +license="Apache-2.0" +makedepends=" + rust cargo cmake fontconfig-dev freetype-dev pkgconfig libxcb-dev python3 + " +subpackages=" + $pkgname-doc + $pkgname-bash-completion:bashcomp:noarch + $pkgname-fish-completion:fishcomp:noarch + $pkgname-zsh-completion:zshcomp:noarch + " +source="$pkgname-$pkgver.tar.gz::https://github.com/jwilm/$pkgname/archive/v$pkgver.tar.gz + ignore-ft-fc-tests-font_mated.patch + " +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 +} + +bashcomp() { + depends="" + pkgdesc="Bash completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + + install -Dm644 "$builddir"/extra/completions/alacritty.bash \ + "$subpkgdir"/usr/share/bash-completion/completions/"$pkgname" +} + +fishcomp() { + depends="" + pkgdesc="Fish completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel fish" + + install -Dm644 "$builddir"/extra/completions/alacritty.fish \ + "$subpkgdir"/usr/share/fish/completions/"$pkgname".fish +} + +zshcomp() { + depends="" + pkgdesc="Zsh completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel zsh" + + install -Dm644 "$builddir"/extra/completions/_alacritty \ + "$subpkgdir"/usr/share/zsh/site-functions/_"$pkgname" +} + + +sha512sums="ddcca2bb776a328882e2137d5dfca9000b04a4c2bbfbd42e38140e0fe3e9262da17d0c3e566afca68ea84bcc476463f7979a2d15ce6fb857afc60df145075adb alacritty-0.3.3.tar.gz +c6ae0a47abbd3583d0ccc8c98b71fb73995b2f65d04fee63b34572e44e859bb1cac6e56993a6d478fdb6de42f66e50e723eb01175117aeff1e4035f81ecf5473 ignore-ft-fc-tests-font_mated.patch" diff --git a/community/alacritty/ignore-ft-fc-tests-font_mated.patch b/community/alacritty/ignore-ft-fc-tests-font_mated.patch new file mode 100644 index 0000000000..1c66bc2b6e --- /dev/null +++ b/community/alacritty/ignore-ft-fc-tests-font_mated.patch @@ -0,0 +1,26 @@ +From bf9bf36b7eee338ceb0605f61b575eb9e1150d34 Mon Sep 17 00:00:00 2001 +From: Henrik Riomar <henrik.riomar@gmail.com> +Date: Tue, 5 Mar 2019 12:21:44 +0100 +Subject: [PATCH] ignore ft::fc::tests::font_mated + +Due to: + 'ft::fc::tests::font_match' panicked at 'match font monospace', libcore/option.rs:1008:5h +--- + font/src/ft/fc/mod.rs | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/font/src/ft/fc/mod.rs b/font/src/ft/fc/mod.rs +index 5e5deb0..285de66 100644 +--- a/font/src/ft/fc/mod.rs ++++ b/font/src/ft/fc/mod.rs +@@ -306,6 +306,7 @@ mod tests { + use super::*; + + #[test] ++ #[ignore] + fn font_match() { + let mut pattern = Pattern::new(); + pattern.add_family("monospace"); +-- +2.21.0 + |