1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
6 pkgdesc="Ohayou(おはよう), HTTP load generator, inspired by rakyll/hey with tui animation"
8 url="https://github.com/hatoo/oha"
10 depends=('openssl' 'gcc-libs')
12 source=($pkgname-$pkgver.tar.gz::https://github.com/hatoo/oha/archive/refs/tags/v${pkgver}.tar.gz)
13 sha512sums=('6744cb2c7bb37d025bb7bb47f518ba30987c6c8bfba1ce26a2d3072cdbfa56af6d3e0913e6a681eeafc858c056243daa3979727e2244ecd2246d8950db1884c7')
16 cd "$srcdir/$pkgname-$pkgver"
18 cargo build --release --locked
22 cd "$srcdir/$pkgname-$pkgver"
24 cargo test --release --locked
28 cd "$srcdir/$pkgname-$pkgver"
30 install -Dm755 target/release/oha "$pkgdir"/usr/bin/oha
31 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
34 # vim:set ts=2 sw=2 et: