# Maintainer: KokaKiwi # Contributor: Felix Golatofski # Contributor: Bumsik Kim pkgname=nushell pkgver=0.34.0 pkgrel=1 pkgdesc="A new type of shell." url="https://www.nushell.sh" license=('MIT') depends=('openssl' 'libxcb' 'libgit2' 'zlib' 'libx11') makedepends=('rust' 'python') arch=('x86_64' 'i686' 'aarch64') install=nushell.install source=("${pkgname}-${pkgver}.tar.gz::https://github.com/nushell/nushell/archive/${pkgver}.tar.gz") sha256sums=('93019a39452170f155a217046a07e9b76b6b1042bb0408587fdc3e3532a8bc62') b2sums=('209ee6f5d00fa6e4b12a9e947e2d3839e6c2bc360372bfa74b58414af49594969b1094634a550914538532730dcfb0c53b76052cf9255e2f4c76b80bc910111f') build() { cd "${pkgname}-${pkgver}" cargo build --release --locked --features extra --target-dir=target } package() { cd "${pkgname}-${pkgver}" install -Dm0755 -t "${pkgdir}/usr/bin" \ target/release/nu $(find target/release -maxdepth 1 -type f -executable -name 'nu_plugin_*') install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }