blob: 2e2c3fa5ae1c807dd450b2592e9b05a3786a0a0a (
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
|
pkgname=svix-cli
pkgver=1.45.1
pkgrel=1
pkgdesc='The Svix CLI (webhooks as a service)'
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="https://www.svix.com"
license=('MIT')
makedepends=(cargo)
# Disabling LTO due to https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/issues/20
options=(!lto)
source=("https://github.com/svix/svix-webhooks/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('4783718e6c4a8b0db4c7fa296a4f36a103ec1a19d6dddeaf313767144b4b88f2')
srcpkgdir="svix-webhooks-$pkgver/$pkgname"
prepare() {
cd $srcpkgdir
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd $srcpkgdir
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
check() {
cd $srcpkgdir
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen --all-features
}
package() {
cd $srcpkgdir
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/svix"
# Syntax highlighting
"$pkgdir"/usr/bin/svix completion bash > bash-svix
install -D bash-svix "$pkgdir"/etc/bash_completion.d/svix
"$pkgdir"/usr/bin/svix completion zsh > zsh-svix
install -D zsh-svix "$pkgdir"/usr/share/zsh/site-functions/_svix
}
|