Date: Monday, December 12, 2022 @ 07:47:38 Author: grawlinson Revision: 1358813
archrelease: copy trunk to community-x86_64 Added: nushell/repos/community-x86_64/PKGBUILD (from rev 1358812, nushell/trunk/PKGBUILD) nushell/repos/community-x86_64/nushell.install (from rev 1358812, nushell/trunk/nushell.install) Deleted: nushell/repos/community-x86_64/PKGBUILD nushell/repos/community-x86_64/nushell.install -----------------+ PKGBUILD | 126 +++++++++++++++++++++++++++--------------------------- nushell.install | 24 +++++----- 2 files changed, 77 insertions(+), 73 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-12-12 07:40:46 UTC (rev 1358812) +++ PKGBUILD 2022-12-12 07:47:38 UTC (rev 1358813) @@ -1,61 +0,0 @@ -# Maintainer: George Rawlinson <grawlin...@archlinux.org> -# Maintainer: Caleb Maclennan <ca...@alerque.com> -# Contributor: KokaKiwi <kokakiwi+...@kokakiwi.net> -# Contributor: Felix Golatofski <cont...@xdfr.de> -# Contributor: Bumsik Kim <k.bum...@gmail.com> - -pkgname=nushell -pkgver=0.72.1 -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=('git' 'rust') -options=('!lto') -install=nushell.install -_commit='777f746127806a34ab946e7495755655cac72cec' -source=("$pkgname::git+https://github.com/nushell/nushell.git#commit=$_commit") -b2sums=('SKIP') - -# NOTE: as of 0.40.0, upstream uses upx to reduce binary size, but this strips -# RELRO + PIE, so we do not enable this - -pkgver() { - cd "$pkgname" - git describe --tags -} - -prepare() { - cd "$pkgname" - cargo fetch --locked --target "$CARCH-unknown-linux-gnu" -} - -build() { - cd "$pkgname" - cargo build --release --frozen --workspace --features=extra -} - -check() { - cd "$pkgname" - cargo test --frozen --workspace --features=extra -} - -package() { - cd "$pkgname" - - # binaries - find target/release \ - -maxdepth 1 \ - -executable \ - -type f \ - -name "nu*" \ - -exec install -vDm755 -t "$pkgdir/usr/bin" "{}" + - - # documentation - install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md - - # license - install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE -} Copied: nushell/repos/community-x86_64/PKGBUILD (from rev 1358812, nushell/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-12-12 07:47:38 UTC (rev 1358813) @@ -0,0 +1,65 @@ +# Maintainer: George Rawlinson <grawlin...@archlinux.org> +# Maintainer: Caleb Maclennan <ca...@alerque.com> +# Contributor: KokaKiwi <kokakiwi+...@kokakiwi.net> +# Contributor: Felix Golatofski <cont...@xdfr.de> +# Contributor: Bumsik Kim <k.bum...@gmail.com> + +pkgname=nushell +pkgver=0.72.1 +pkgrel=2 +pkgdesc='A new type of shell' +arch=('x86_64') +url='https://www.nushell.sh' +license=('MIT') +depends=('openssl' 'libxcb' 'libx11' 'curl' 'bzip2') +makedepends=('git' 'rust') +options=('!lto') +install=nushell.install +_commit='777f746127806a34ab946e7495755655cac72cec' +source=("$pkgname::git+https://github.com/nushell/nushell.git#commit=$_commit") +b2sums=('SKIP') + +# NOTE: as of 0.40.0, upstream uses upx to reduce binary size, but this strips +# RELRO + PIE, so we do not enable this + +pkgver() { + cd "$pkgname" + + git describe --tags +} + +prepare() { + cd "$pkgname" + + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$pkgname" + + cargo build --release --frozen --workspace --features=extra,dataframe +} + +check() { + cd "$pkgname" + + cargo test --frozen --workspace --features=extra,dataframe +} + +package() { + cd "$pkgname" + + # binaries + find target/release \ + -maxdepth 1 \ + -executable \ + -type f \ + -name "nu*" \ + -exec install -vDm755 -t "$pkgdir/usr/bin" "{}" + + + # documentation + install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +} Deleted: nushell.install =================================================================== --- nushell.install 2022-12-12 07:40:46 UTC (rev 1358812) +++ nushell.install 2022-12-12 07:47:38 UTC (rev 1358813) @@ -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 1358812, nushell/trunk/nushell.install) =================================================================== --- nushell.install (rev 0) +++ nushell.install 2022-12-12 07:47:38 UTC (rev 1358813) @@ -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 +}