aboutsummaryrefslogtreecommitdiffstats
path: root/testing/asciinema-rs/APKBUILD
blob: 7595959b4e440dbcd7496bb25cde6673b108e0e1 (plain)
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
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=asciinema-rs
pkgver=0.5.1
pkgrel=2
pkgdesc="A reimplementation of the asciinema command line program written in Rust."
url="https://github.com/LegNeato/asciinema-rs"
arch="x86_64" # Limited by cargo
license="Apache-2.0 MIT"
makedepends="cargo openssl-dev"
source="https://github.com/LegNeato/asciinema-rs/archive/v$pkgver/asciinema-rs-v$pkgver.tar.gz
	 openssl3.patch
	 "
options="!check" # fail on 'home'

export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"

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

check() {
	cargo test --release --locked
}

package() {
	install -Dt "$pkgdir"/usr/bin target/release/asciinema
}

sha512sums="
59a786a6a82122c33200bc7eb30e96e38548e45eb478eae259fa8ccd601b0bd596d4d9066ce75a5dc95abdaa97554f4a05cc2218b4c228566a65ed510d35c600  asciinema-rs-v0.5.1.tar.gz
0618071301549fa61965c2644a0f6b717caa54ab3ec60c4d345e182b89180a6ab03956f9a027f9e72c7ea99d9212689ab24e9b7f70e924d6d45e3efc17496812  openssl3.patch
"