Patches for aports can be sent to this list

[alpine-aports] [PATCH v4] testing/alacritty: new APKBUILD

Details
Message ID
<20190305003914.4517-1-sir@cmpwn.com>
Sender timestamp
1551746354
DKIM signature
missing
Download raw message
Patch: +35 -0
---
This version disables check, because it requires a headless X server. I
was going to set this up, but we don't have Xvfb and fixing that is
probably better to address separately.

 testing/alacritty/APKBUILD | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 testing/alacritty/APKBUILD

diff --git a/testing/alacritty/APKBUILD b/testing/alacritty/APKBUILD
new file mode 100644
index 0000000000..eb1d885c5a
--- /dev/null
+++ b/testing/alacritty/APKBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Drew DeVault <sir@cmpwn.com>
+pkgname=alacritty
+pkgver=0.2.9
+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"
+subpackages="$pkgname-doc"
+checkdepends="xclip"
+source="$pkgname-$pkgver.tar.gz::https://github.com/jwilm/$pkgname/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+options="!check" # TODO: tests require an X server, spin up xvfb for check
+export CARGO_HOME="$srcdir"/cargo
+export RUSTFLAGS="-C target-feature=-crt-static"
+
+build() {
+	cd "$builddir"
+	cargo build --release --verbose
+}
+
+check() {
+	cd "$builddir"
+	cargo test --all --release --verbose
+}
+
+package() {
+	cd "$builddir"
+	install -Dm755 target/release/alacritty "$pkgdir"/usr/bin/alacritty
+	install -Dm644 alacritty.man "$pkgdir"/usr/share/man/man1/alacritty.1
+	install -Dm644 alacritty.yml "$pkgdir"/etc/alacritty/alacritty.yml
+}
+
+sha512sums="c36dea633d5c9faa42956eff47fbd676b5f3a5ef28ae7d6711145f76e99ae92aa8ddcdde1eb5bc700855af5928e2da0b4be3f618bb05aa93c284b73727b2e337  alacritty-0.2.9.tar.gz"
-- 
2.21.0



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---