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

George Rawlinson grawlinson at gemini.archlinux.org
Tue Nov 30 03:43:38 UTC 2021


    Date: Tuesday, November 30, 2021 @ 03:43:38
  Author: grawlinson
Revision: 1057674

archrelease: copy trunk to community-x86_64

Added:
  cargo-sort/repos/community-x86_64/PKGBUILD
    (from rev 1057673, cargo-sort/trunk/PKGBUILD)
Deleted:
  cargo-sort/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  113 +++++++++++++++++++++++++------------------------------------
 1 file changed, 48 insertions(+), 65 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-30 03:42:50 UTC (rev 1057673)
+++ PKGBUILD	2021-11-30 03:43:38 UTC (rev 1057674)
@@ -1,65 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-# Contributor: Dominic Meiser [git at msrd0 dot de]
-
-pkgname=cargo-sort
-pkgver=1.0.6
-pkgrel=1
-pkgdesc="Check if tables and items in a .toml file are lexically sorted"
-arch=('x86_64')
-url="https://github.com/DevinR528/cargo-sort"
-license=('Apache' 'MIT')
-depends=('gcc-libs')
-makedepends=('rust')
-# no upstream tag, and test files are not included in crate tarball
-# using a pinned commit from upstream to extract test files
-_commit='7f90788bab0578fbe6e879905ac34708ca11d56e'
-source=(
-  "$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate"
-  "$url/archive/$_commit.tar.gz"
-)
-sha512sums=('b27fb0938e598c54dacd2593ca021b01528d45637b9031ebdb2289446fdb9485818a12bd62812a1efd2bc5a7c116123ddd7852a7a2491d06f6673e4d9ae1b17d'
-            '610b920e0e18a5d16919f504d79455a86f921c9e128c1bbc3aee80a7d31d04b85c9fc66efa1b41ae73319be67aede0912b36a1be0ce376baee9b90b85d2dfe8b')
-b2sums=('f899b68a260bae85cad1b129e8027a1f857532555766f2e02ef590e8a683e7f2beaf279980d78fd8b175cd5c90ca5123bc8cc7d51631f6cb4899a929b16f1799'
-        '18dd544385ff7747925c7e31bcbc169bab97704050206ed41fd4a7df5a8f051893283fbbbf6fe4fadc6fb04841f73073aec1783bd6bb84741d2d5ffab5e09587')
-noextract=("$_commit.tar.gz")
-
-prepare() {
-  cd "$pkgname-$pkgver"
-
-  # download dependencies
-  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
-
-  # extract test files
-  bsdtar \
-    --strip-components 1 \
-    --extract \
-    --file "$srcdir/$_commit.tar.gz" \
-    --include '*fixtures*' \
-    --include '*examp*'
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  cargo build --release --frozen
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  cargo test --frozen
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-
-  # binary
-  install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
-
-  # licenses
-  install -vd "$pkgdir/usr/share/licenses/$pkgname"
-  sed -n '/^####.*$/,/^<\/sub>$/p' README.md \
-    > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
-  # documentation
-  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
-  cp -vr examp "$pkgdir/usr/share/doc/$pkgname/examples"
-}

Copied: cargo-sort/repos/community-x86_64/PKGBUILD (from rev 1057673, cargo-sort/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-30 03:43:38 UTC (rev 1057674)
@@ -0,0 +1,48 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Dominic Meiser [git at msrd0 dot de]
+
+pkgname=cargo-sort
+pkgver=1.0.6
+pkgrel=2
+pkgdesc="Check if tables and items in a .toml file are lexically sorted"
+arch=('x86_64')
+url="https://github.com/DevinR528/cargo-sort"
+license=('Apache' 'MIT')
+depends=('gcc-libs')
+makedepends=('rust')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('5ab6843daefd4d5a2c947cb61a94930b78e42613afb3bd706964a8aeaf6a04bbecf45e73b8e71ceec9890343744024ab70d2cd87f673362562fd65d543a1ffb4')
+b2sums=('8d6ec7ad78925a1c3659e1540c8cc3f20c938a51c2d7adfffa99db413d11c266bb2a69274222967e37e13e9b899c582b6982db29ac597146748f85e73501abe8')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+
+  # download dependencies
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  cargo build --release --frozen
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  cargo test --frozen
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+  # binary
+  install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
+
+  # licenses
+  install -vd "$pkgdir/usr/share/licenses/$pkgname"
+  sed -n '/^####.*$/,/^<\/sub>$/p' README.md \
+    > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  # documentation
+  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+  cp -vr examp "$pkgdir/usr/share/doc/$pkgname/examples"
+}



More information about the arch-commits mailing list