[arch-commits] Commit in nushell/repos/community-x86_64 (4 files)

George Rawlinson grawlinson at gemini.archlinux.org
Tue Nov 16 21:45:01 UTC 2021


    Date: Tuesday, November 16, 2021 @ 21:45:01
  Author: grawlinson
Revision: 1048867

archrelease: copy trunk to community-x86_64

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

-----------------+
 PKGBUILD        |  113 +++++++++++++++++++++++++++---------------------------
 nushell.install |   24 +++++------
 2 files changed, 70 insertions(+), 67 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-16 21:44:01 UTC (rev 1048866)
+++ PKGBUILD	2021-11-16 21:45:01 UTC (rev 1048867)
@@ -1,55 +0,0 @@
-# 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.39.0
-pkgrel=1
-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")
-sha512sums=('c3735a22f7b41b78847e5361c300252f4de77a2c783ea219a8f7f56b3211845e19807f216986361b75d6dac0b67340371e1475b3e6515a8c2dac4fc52ac9488a')
-b2sums=('d3192b0b88bf0232a46b6c3818fcbb9322f461c37fac5e8b0e3aa28d9a737a5bb650c3ae9ab3cefe46975484ed5247d7fa75632a0b9aa5b2a054313a6431f643')
-
-prepare() {
-  cd "$pkgname-$pkgver"
-  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  cargo build --release --frozen --workspace --features=extra
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  cargo test --frozen --workspace --features=extra
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-
-  # binaries
-  find target/release \
-    -maxdepth 1 \
-    -executable \
-    -type f \
-    -exec install -vDm755 -t "$pkgdir/usr/bin" "{}" +
-
-  # remove binaries not present in upstream releases
-  rm -f "$pkgdir/usr/bin/table"
-  rm -f "$pkgdir/usr/bin/"nu_plugin_{core,extra}_*
-
-  # 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/PKGBUILD (from rev 1048866, nushell/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-16 21:45:01 UTC (rev 1048867)
@@ -0,0 +1,58 @@
+# 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.40.0
+pkgrel=1
+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")
+sha512sums=('83e8382a524699bb8bca03b1262a4943eba9acd0e4855deb3556f03bbc53c643b4697dc7ffb09e9d9d05326d14f4101b793fea7f39bcb68ba10b532873a08daa')
+b2sums=('fe469a3bec4ea439bdfc064a770d50e589327e6e02a4611142103e0f49073ab827973afac11856cf281b229d9e820e7df3acb97d2c951191d008a0aa2c427635')
+
+# NOTE: as of 0.40.0, upstream uses upx to reduce binary size, but this strips
+# RELRO + PIE, so we do not enable this
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  cargo build --release --frozen --workspace --features=extra
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  cargo test --frozen --workspace --features=extra
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+  # binaries
+  find target/release \
+    -maxdepth 1 \
+    -executable \
+    -type f \
+    -exec install -vDm755 -t "$pkgdir/usr/bin" "{}" +
+
+  # remove binaries not present in upstream releases
+  rm -f "$pkgdir/usr/bin/table"
+  rm -f "$pkgdir/usr/bin/"nu_plugin_{core,extra}_*
+
+  # 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
+}

Deleted: nushell.install
===================================================================
--- nushell.install	2021-11-16 21:44:01 UTC (rev 1048866)
+++ nushell.install	2021-11-16 21:45:01 UTC (rev 1048867)
@@ -1,12 +0,0 @@
-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
-}

Copied: nushell/repos/community-x86_64/nushell.install (from rev 1048866, nushell/trunk/nushell.install)
===================================================================
--- nushell.install	                        (rev 0)
+++ nushell.install	2021-11-16 21:45:01 UTC (rev 1048867)
@@ -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