[arch-commits] Commit in (5 files)

George Rawlinson grawlinson at gemini.archlinux.org
Mon Aug 23 01:12:11 UTC 2021


    Date: Monday, August 23, 2021 @ 01:12:11
  Author: grawlinson
Revision: 1004242

addpkg: nushell 0.35.0-3

Added:
  nushell/
  nushell/repos/
  nushell/trunk/
  nushell/trunk/PKGBUILD
  nushell/trunk/nushell.install

-----------------+
 PKGBUILD        |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 nushell.install |   12 ++++++++++++
 2 files changed, 62 insertions(+)

Added: nushell/trunk/PKGBUILD
===================================================================
--- nushell/trunk/PKGBUILD	                        (rev 0)
+++ nushell/trunk/PKGBUILD	2021-08-23 01:12:11 UTC (rev 1004242)
@@ -0,0 +1,50 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor:  KokaKiwi <kokakiwi+aur at kokakiwi.net>
+# Contributor: Felix Golatofski <contact at xdfr.de>
+# Contributor: Bumsik Kim <k.bumsik at gmail.com>
+
+pkgname=nushell
+pkgver=0.35.0
+pkgrel=3
+pkgdesc="A new type of shell"
+arch=('x86_64')
+url="https://www.nushell.sh"
+license=('MIT')
+depends=('openssl' 'libxcb' 'libx11' 'curl' 'bzip2')
+makedepends=('rust')
+install="$pkgname.install"
+source=("$pkgname-$pkgver.tar.gz::https://github.com/nushell/nushell/archive/$pkgver.tar.gz")
+b2sums=('1a179cfa8e4a6bb5f7543e7a22ef2de596b5f03cb0c401e1751d525cbf7e3466704495b815a84e609cc67d99fe18f9be2b840dd5b380afd2c05667418ca9431b')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  cargo build --release --all-features --frozen
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  cargo test --frozen --all-features
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+  # binaries
+  find target/release \
+    -maxdepth 1 \
+    -executable \
+    -type f \
+    -exec install -vDm755 -t "$pkgdir/usr/bin" "{}" +
+
+  # documentation
+  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" ./*.md
+  cp -vr docs/* "$pkgdir/usr/share/doc/$pkgname"
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}

Added: nushell/trunk/nushell.install
===================================================================
--- nushell/trunk/nushell.install	                        (rev 0)
+++ nushell/trunk/nushell.install	2021-08-23 01:12:11 UTC (rev 1004242)
@@ -0,0 +1,12 @@
+post_install() {
+  grep -Fqx /bin/nu /etc/shells || echo /bin/nu >> /etc/shells
+  grep -Fqx /usr/bin/nu /etc/shells || echo /usr/bin/nu >> /etc/shells
+}
+
+post_upgrade() {
+  post_install
+}
+
+pre_remove() {
+  sed -i -r '/^(\/usr)?\/bin\/nu$/d' etc/shells
+}



More information about the arch-commits mailing list