[arch-commits] Commit in sad/trunk (PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Sun May 29 03:01:19 UTC 2022


    Date: Sunday, May 29, 2022 @ 03:01:19
  Author: grawlinson
Revision: 1213679

upgpkg: sad 0.4.21-1

New upstream release.

Modified:
  sad/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-29 03:00:28 UTC (rev 1213678)
+++ PKGBUILD	2022-05-29 03:01:19 UTC (rev 1213679)
@@ -5,14 +5,14 @@
 # Contributor: Matthew Gamble <internet at matthewgamble.net>
 
 pkgname=sad
-pkgver=0.4.20
+pkgver=0.4.21
 pkgrel=1
-pkgdesc="Space Age seD"
+pkgdesc='Space Age seD'
 arch=('x86_64')
-url="https://github.com/ms-jpq/sad"
+url='https://github.com/ms-jpq/sad'
 license=('MIT')
 depends=('gcc-libs')
-makedepends=('rust')
+makedepends=('git' 'rust')
 optdepends=(
   'fzf: for tui usage'
   'diff-so-fancy: for diff colourizer'
@@ -19,11 +19,18 @@
   'git-delta: for diff colourizer'
 )
 options=('!lto')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-b2sums=('4e6e3730f0c30c529a1ad3af81a8e5aafcb80bf04c22556b6a5f1c4f437b5ccc3fb1abdbde762fc8ddfbadeb215f81d726e048c4dd04add2413e329fac2c21e6')
+_commit='d815a755a82f9ee90b598bc9dc88ef06f5d66f5e'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
 
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
 prepare() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname"
 
   # download dependencies
   cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
@@ -30,17 +37,17 @@
 }
 
 build() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname"
   cargo build --frozen --release --all-features
 }
 
 check() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname"
   cargo test --frozen --all-features
 }
 
 package() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname"
 
   # binary
   install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"



More information about the arch-commits mailing list