[arch-commits] Commit in oha/repos (community-x86_64 community-x86_64/PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Jan 6 15:42:28 UTC 2021


    Date: Wednesday, January 6, 2021 @ 15:42:28
  Author: svenstaro
Revision: 810952

archrelease: copy trunk to community-x86_64

Added:
  oha/repos/community-x86_64/
  oha/repos/community-x86_64/PKGBUILD
    (from rev 810951, oha/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: oha/repos/community-x86_64/PKGBUILD (from rev 810951, oha/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-01-06 15:42:28 UTC (rev 810952)
@@ -0,0 +1,34 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+
+pkgname=oha
+pkgver=0.4.4
+pkgrel=1
+pkgdesc="Ohayou(おはよう), HTTP load generator, inspired by rakyll/hey with tui animation"
+arch=('x86_64')
+url="https://github.com/hatoo/oha"
+license=('MIT')
+depends=('openssl' 'gcc-libs')
+makedepends=('rust')
+source=($pkgname-$pkgver.tar.gz::https://github.com/hatoo/oha/archive/v${pkgver}.tar.gz)
+sha512sums=('94afdfa30dbae5fdc60680c580c26ea45328ece6f5bf32b7f8de38a0c44d02a9985cfb8d0dda43d4b025adf850e11ea5c10cf012b2ce9c04c0f64142bf3eb9de')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  cargo build --release --locked
+}
+
+check() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  cargo test --release --locked
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  install -Dm755 target/release/oha "$pkgdir"/usr/bin/oha
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list