[arch-commits] Commit in nushell/repos (3 files)

George Rawlinson grawlinson at gemini.archlinux.org
Mon Aug 23 01:13:09 UTC 2021


    Date: Monday, August 23, 2021 @ 01:13:08
  Author: grawlinson
Revision: 1004243

archrelease: copy trunk to community-x86_64

Added:
  nushell/repos/community-x86_64/
  nushell/repos/community-x86_64/PKGBUILD
    (from rev 1004242, nushell/trunk/PKGBUILD)
  nushell/repos/community-x86_64/nushell.install
    (from rev 1004242, nushell/trunk/nushell.install)

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

Copied: nushell/repos/community-x86_64/PKGBUILD (from rev 1004242, nushell/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-08-23 01:13:08 UTC (rev 1004243)
@@ -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
+}

Copied: nushell/repos/community-x86_64/nushell.install (from rev 1004242, nushell/trunk/nushell.install)
===================================================================
--- community-x86_64/nushell.install	                        (rev 0)
+++ community-x86_64/nushell.install	2021-08-23 01:13:08 UTC (rev 1004243)
@@ -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