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

George Rawlinson grawlinson at gemini.archlinux.org
Wed Jan 19 02:16:48 UTC 2022


    Date: Wednesday, January 19, 2022 @ 02:16:47
  Author: grawlinson
Revision: 1110310

upgpkg: nushell 0.43.0-1

* New upstream release.
* Switch source to git commit from github tarball.

Modified:
  nushell/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-19 02:14:52 UTC (rev 1110309)
+++ PKGBUILD	2022-01-19 02:16:47 UTC (rev 1110310)
@@ -4,7 +4,7 @@
 # Contributor: Bumsik Kim <k.bumsik at gmail.com>
 
 pkgname=nushell
-pkgver=0.42.0
+pkgver=0.43.0
 pkgrel=1
 pkgdesc="A new type of shell"
 arch=('x86_64')
@@ -11,33 +11,38 @@
 url="https://www.nushell.sh"
 license=('MIT')
 depends=('openssl' 'libxcb' 'libx11' 'curl' 'bzip2')
-makedepends=('rust')
+makedepends=('git' 'rust')
 options=('!lto')
 install="$pkgname.install"
-source=("$pkgname-$pkgver.tar.gz::https://github.com/nushell/nushell/archive/$pkgver.tar.gz")
-sha512sums=('d68bc66241fc08e98f528e5f244650d9d7f74d38692f49f1cb9a4c0e5de80ba5fae5dd7be50dea92a0912657776fee84266bd8a1943c4ee8ff13432be21073cb')
-b2sums=('f2a08ad466da41b850cf57413bf65ffcd728b8e5069a8b90bb8c03a5aa2c9e1c7e43383820ee848f024eb64c533abd189f444bb5739f2becc139a3e7aec07caa')
+_commit='4e8e03867c87307d536369a20dbe81491666ee51'
+source=("$pkgname::git+https://github.com/nushell/nushell.git#commit=$_commit")
+b2sums=('SKIP')
 
 # NOTE: as of 0.40.0, upstream uses upx to reduce binary size, but this strips
 # RELRO + PIE, so we do not enable this
 
+pkgver() {
+  cd "$pkgname"
+  git describe --tags
+}
+
 prepare() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname"
   cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
 }
 
 build() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname"
   cargo build --release --frozen --workspace --features=extra
 }
 
 check() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname"
   cargo test --frozen --workspace --features=extra
 }
 
 package() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname"
 
   # binaries
   find target/release \



More information about the arch-commits mailing list