[arch-commits] Commit in cargo-sort/repos/community-x86_64 (PKGBUILD PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Sat Nov 27 04:10:11 UTC 2021
Date: Saturday, November 27, 2021 @ 04:10:10
Author: grawlinson
Revision: 1054918
archrelease: copy trunk to community-x86_64
Added:
cargo-sort/repos/community-x86_64/PKGBUILD
(from rev 1054917, cargo-sort/trunk/PKGBUILD)
Deleted:
cargo-sort/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 109 ++++++++++++++++++++++++++++++++++++-------------------------
1 file changed, 65 insertions(+), 44 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-27 04:08:23 UTC (rev 1054917)
+++ PKGBUILD 2021-11-27 04:10:10 UTC (rev 1054918)
@@ -1,44 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-# Contributor: Dominic Meiser [git at msrd0 dot de]
-
-pkgname=cargo-sort
-pkgver=1.0.5
-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')
-makedepends=('rust' 'llvm' 'clang')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-b2sums=('647ecaea8e6b5a1f53460996b1374a502c4d0356a29d982c67ee83682710e74a7f709c2495291c1be70e572e77176cbbe29fc7d1728ab88283d586bf948ff40b')
-
-prepare() {
- cd "$pkgname-$pkgver"
- cargo fetch --locked
-}
-
-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 1054917, cargo-sort/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-11-27 04:10:10 UTC (rev 1054918)
@@ -0,0 +1,65 @@
+# 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"
+}
More information about the arch-commits
mailing list