[arch-commits] Commit in (oha oha/repos oha/trunk oha/trunk/PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Wed Jan 6 15:38:40 UTC 2021
Date: Wednesday, January 6, 2021 @ 15:38:40
Author: svenstaro
Revision: 810944
Move oha from AUR
Added:
oha/
oha/repos/
oha/trunk/
oha/trunk/PKGBUILD
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Added: oha/trunk/PKGBUILD
===================================================================
--- oha/trunk/PKGBUILD (rev 0)
+++ oha/trunk/PKGBUILD 2021-01-06 15:38:40 UTC (rev 810944)
@@ -0,0 +1,34 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+
+pkgname=oha
+pkgver=0.4.3
+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')
+makedepends=('rust')
+source=($pkgname-$pkgver.tar.gz::https://github.com/hatoo/oha/archive/v${pkgver}.tar.gz)
+sha512sums=('cf77a0af4b4fb14bed3b884759a541fc71b16359b27f7bd2e598946d850569ed9f8f4b94fbad6961b82ea0b942bb65e146a41b59da0d71066a3b11cb86ade361')
+
+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