Date: Wednesday, September 15, 2021 @ 00:54:11 Author: grawlinson Revision: 1014963
archrelease: copy trunk to community-x86_64 Added: nushell/repos/community-x86_64/PKGBUILD (from rev 1014962, nushell/trunk/PKGBUILD) nushell/repos/community-x86_64/nushell.install (from rev 1014962, nushell/trunk/nushell.install) Deleted: nushell/repos/community-x86_64/PKGBUILD nushell/repos/community-x86_64/nushell.install -----------------+ PKGBUILD | 104 ++++++++++++++++++++++++++++-------------------------- nushell.install | 24 ++++++------ 2 files changed, 66 insertions(+), 62 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-09-15 00:52:47 UTC (rev 1014962) +++ PKGBUILD 2021-09-15 00:54:11 UTC (rev 1014963) @@ -1,50 +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.36.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=('4e9fb8962c24fe03020f7dd8b168a057334ee96e25809f0678f214fc40f2c5a973d7d91723fe51e61e999b2b32b4a0670237b7f5944ef3778f8bf2f69a247d7d') - -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/PKGBUILD (from rev 1014962, nushell/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-09-15 00:54:11 UTC (rev 1014963) @@ -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.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 +} Deleted: nushell.install =================================================================== --- nushell.install 2021-09-15 00:52:47 UTC (rev 1014962) +++ nushell.install 2021-09-15 00:54:11 UTC (rev 1014963) @@ -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 1014962, nushell/trunk/nushell.install) =================================================================== --- nushell.install (rev 0) +++ nushell.install 2021-09-15 00:54:11 UTC (rev 1014963) @@ -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 +}