blob: 5c9671bbf1af3c8730fa225254cbde310bdac3b2 (
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
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=wrkflw
pkgver=0.7.3
pkgrel=1
pkgdesc='validate and execute GitHub Actions workflows locally'
url="https://github.com/bahdotsh/$pkgname"
arch=(x86_64)
license=(MIT)
depends=(gcc-libs
glibc
openssl libcrypto.so)
makedepends=(cargo)
_archive="$pkgname-$pkgver"
source=("$url/archive/v$pkgver/$_archive.tar.gz")
sha256sums=('475acd61bff0b6ee4ec58aa566b442355e88d9efe18267c58c1501f3fb93f4bc')
prepare() {
cd "$_archive"
cargo fetch --locked --target "$(rustc --print host-tuple)"
}
_srcenv() {
cd "$_archive"
CFLAGS+=' -ffat-lto-objects'
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
export OPENSSL_NO_VENDOR=true
}
build() {
_srcenv
cargo build --frozen --release --all-features
}
check() {
_srcenv
cargo test --frozen --all-features
}
package() {
cd "$_archive"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
|