archrelease: copy trunk to community-any
[ArchLinux/community.git] / oha / repos / community-x86_64 / PKGBUILD
blobdc337b4081401c2b0eb034013549064100dc0df0
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
3 pkgname=oha
4 pkgver=0.5.8
5 pkgrel=1
6 pkgdesc="Ohayou(おはよう), HTTP load generator, inspired by rakyll/hey with tui animation"
7 arch=('x86_64')
8 url="https://github.com/hatoo/oha"
9 license=('MIT')
10 depends=('openssl' 'gcc-libs')
11 makedepends=('rust')
12 source=($pkgname-$pkgver.tar.gz::https://github.com/hatoo/oha/archive/refs/tags/v${pkgver}.tar.gz)
13 sha512sums=('6744cb2c7bb37d025bb7bb47f518ba30987c6c8bfba1ce26a2d3072cdbfa56af6d3e0913e6a681eeafc858c056243daa3979727e2244ecd2246d8950db1884c7')
15 build() {
16   cd "$srcdir/$pkgname-$pkgver"
18   cargo build --release --locked
21 check() {
22   cd "$srcdir/$pkgname-$pkgver"
24   cargo test --release --locked
27 package() {
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: