# Maintainer: KokaKiwi # Contributor: Felix Golatofski # Contributor: Bumsik Kim pkgname=nushell pkgver=0.31.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=('4dcbe38b35902a98df3f213fef5f69dcd9870975a18e2a7feb002534e68d848b') b2sums=('c11bf08c6277139d0e757591cbde25cc64f99f30c61008068bd6b57b75f0bac456f6a8d50e57b6061355e2b46452400034ccb4f2daea5b9eb7d6674bdb65dc2f') 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" }