Date: Tuesday, October 5, 2021 @ 21:35:20 Author: grawlinson Revision: 1027821
archrelease: copy trunk to community-x86_64 Added: nushell/repos/community-x86_64/PKGBUILD (from rev 1027820, nushell/trunk/PKGBUILD) nushell/repos/community-x86_64/nushell.install (from rev 1027820, nushell/trunk/nushell.install) Deleted: nushell/repos/community-x86_64/PKGBUILD nushell/repos/community-x86_64/nushell.install -----------------+ PKGBUILD | 108 +++++++++++++++++++++++++++--------------------------- nushell.install | 24 ++++++------ 2 files changed, 66 insertions(+), 66 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-10-05 21:34:33 UTC (rev 1027820) +++ PKGBUILD 2021-10-05 21:35:20 UTC (rev 1027821) @@ -1,54 +0,0 @@ -# Maintainer: George Rawlinson <grawlin...@archlinux.org> -# Contributor: KokaKiwi <kokakiwi+...@kokakiwi.net> -# Contributor: Felix Golatofski <cont...@xdfr.de> -# Contributor: Bumsik Kim <k.bum...@gmail.com> - -pkgname=nushell -pkgver=0.37.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") -b2sums=('fa77a8a4e37733b7a05eece368a2ecf835f7c87a32997bd97d3812e16168dc02d72896cbab5ad51056bf2967f6b24e9284ab65a90c6feab02b13c2f6f83a79a5') - -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 1027820, nushell/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-10-05 21:35:20 UTC (rev 1027821) @@ -0,0 +1,54 @@ +# Maintainer: George Rawlinson <grawlin...@archlinux.org> +# Contributor: KokaKiwi <kokakiwi+...@kokakiwi.net> +# Contributor: Felix Golatofski <cont...@xdfr.de> +# Contributor: Bumsik Kim <k.bum...@gmail.com> + +pkgname=nushell +pkgver=0.38.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") +b2sums=('e8f3cb4a3f84677d949c187fa4304c32f2f2f1f57c7546a42946c6e01abdf6b1147efeb3243a3b934c7ea6ac30b0042dadff9794f811009865a29f65fd3ebef6') + +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-10-05 21:34:33 UTC (rev 1027820) +++ nushell.install 2021-10-05 21:35:20 UTC (rev 1027821) @@ -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 1027820, nushell/trunk/nushell.install) =================================================================== --- nushell.install (rev 0) +++ nushell.install 2021-10-05 21:35:20 UTC (rev 1027821) @@ -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 +}