blob: 60331f8a2eb3260b6fb71e3df6cda430519adaa3 (
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
|
# Maintainer: KokaKiwi <kokakiwi+aur at kokakiwi dot net>
pkgname=goku
pkgver=1.1.6
pkgrel=1
pkgdesc='HTTP load testing application'
url='https://github.com/jcaromiq/goku'
license=('MIT')
arch=('x86_64' 'i686' 'arm' 'aarch64')
depends=('gcc-libs' 'openssl')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::https://github.com/jcaromiq/goku/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('c98e99975942d52932bb1b141aa19390183594793ac38c9db7b1871b06bd24c7')
b2sums=('28dd35bd5b0e63c33014b9b10229daf7d10be0088d611f1dfd43b7bebeffa6d8f8a4f5e778f34d48827c8c1762813f942f0245e81947139323741793fa0da931')
options=(!lto)
case $CARCH in
x86_64|i686|aarch64)
_target="$CARCH-unknown-linux-gnu" ;;
arm)
_target="arm-unknown-linux-gnueabi" ;;
esac
prepare() {
cd "$pkgname-$pkgver"
cargo fetch --locked --target $_target
}
build() {
cd "$pkgname-$pkgver"
CARGO_TARGET_DIR='target' \
cargo build --frozen --release
}
package() {
cd "$pkgname-$pkgver"
install -Dm0755 -t "$pkgdir/usr/bin" \
target/release/goku
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
|