[arch-commits] Commit in cargo-nextest/repos (2 files)

Orhun Parmaksiz orhun at gemini.archlinux.org
Fri Mar 4 19:13:07 UTC 2022


    Date: Friday, March 4, 2022 @ 19:13:07
  Author: orhun
Revision: 1141802

archrelease: copy trunk to community-x86_64

Added:
  cargo-nextest/repos/community-x86_64/
  cargo-nextest/repos/community-x86_64/PKGBUILD
    (from rev 1141801, cargo-nextest/trunk/PKGBUILD)

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

Copied: cargo-nextest/repos/community-x86_64/PKGBUILD (from rev 1141801, cargo-nextest/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-03-04 19:13:07 UTC (rev 1141802)
@@ -0,0 +1,40 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+# Contributor: KokaKiwi <kokakiwi+aur at kokakiwi dot net>
+
+pkgname=cargo-nextest
+pkgver=0.9.9
+pkgrel=2
+pkgdesc="A next-generation test runner for Rust."
+arch=('x86_64')
+url="https://github.com/nextest-rs/nextest"
+license=('Apache' 'MIT')
+depends=('gcc-libs')
+makedepends=('cargo')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/cargo-nextest-$pkgver.tar.gz")
+sha256sums=('5553550b8cf24668a809cee8812b01851ec3ae122390234c0f01993c8b6e54c2')
+b2sums=('df4c9d63ba4f8f7816efc2b5ca784fe0a5b15f6f4b59627f44d49c9ec77aefd3bb34d857c734c57f73c7ea096b964b2e9d74d14203c6a4620513b72498bcf059')
+
+prepare() {
+  mv "nextest-$pkgname-$pkgver" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  cargo build --release --frozen --package "$pkgname"
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  cargo test --frozen
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
+  install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+  install -Dm 644 LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list