[arch-commits] Commit in cargo-sort/trunk (PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Tue Nov 30 03:42:50 UTC 2021
Date: Tuesday, November 30, 2021 @ 03:42:50
Author: grawlinson
Revision: 1057673
upgpkg: cargo-sort 1.0.6-2
Switch to single upstream source instead of two.
Modified:
cargo-sort/trunk/PKGBUILD
----------+
PKGBUILD | 25 ++++---------------------
1 file changed, 4 insertions(+), 21 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-29 22:26:43 UTC (rev 1057672)
+++ PKGBUILD 2021-11-30 03:42:50 UTC (rev 1057673)
@@ -3,7 +3,7 @@
pkgname=cargo-sort
pkgver=1.0.6
-pkgrel=1
+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"
@@ -10,18 +10,9 @@
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")
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('5ab6843daefd4d5a2c947cb61a94930b78e42613afb3bd706964a8aeaf6a04bbecf45e73b8e71ceec9890343744024ab70d2cd87f673362562fd65d543a1ffb4')
+b2sums=('8d6ec7ad78925a1c3659e1540c8cc3f20c938a51c2d7adfffa99db413d11c266bb2a69274222967e37e13e9b899c582b6982db29ac597146748f85e73501abe8')
prepare() {
cd "$pkgname-$pkgver"
@@ -28,14 +19,6 @@
# 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() {
More information about the arch-commits
mailing list