diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 20 insertions, 21 deletions
@@ -1,34 +1,33 @@ -# Maintainer: Felix Golatofski <contact@xdfr.de> +# Maintainer: KokaKiwi <kokakiwi+aur@kokakiwi.net> +# Contributor: Felix Golatofski <contact@xdfr.de> # Contributor: Bumsik Kim <k.bumsik@gmail.com> -# Contributor: KokaKiwi <kokakiwi+aur@kokakiwi.net> -# Scripts inspired by nushell-git package -_pkgname=nu -pkgname=${_pkgname}shell -pkgver=0.20.0 +pkgname=nushell +pkgver=0.21.0 pkgrel=1 pkgdesc="A new type of shell." url="https://www.nushell.sh" license=('MIT') +depends=('openssl' 'libxcb' 'libgit2' 'zlib') +optdepends=('libx11: for binaryview plugin') makedepends=('rust') -depends=('openssl') -optdepends=('libxcb' 'libx11') arch=('x86_64' 'i686') -source=("https://github.com/nushell/nushell/archive/$pkgver.tar.gz") -# Use updpkgsums to update the checksum -sha256sums=('ccecbfd49d03ca45f347fe55b789b8732003ceab49a14af110390e723f2fd274') -b2sums=('3d8fcccc0c353ab7c98a4ad5c3485cd74950d96c481cb6b855e8d5f549b3622d28d1e32f087eb6f620f83f1b7160d25efe80255694cad79b23ad5c2585c5678a') +source=("https://github.com/nushell/nushell/archive/${pkgver}.tar.gz") +install=nushell.install +sha256sums=('24598bcf6e61825fd3b6f17e083952926a4b072efff413748bbd5bc83a3158f1') +b2sums=('b09cf833353b302479238f938a92979a6d37cb4072a945a5abbf637757c5083ccc59906ba7527bfcad5e6bf89eb9eecafc94a263597934720950833e4516bffd') -package() { - install=nushell.install +build() { + cd "${pkgname}-${pkgver}" + + cargo build --release --locked --features extra +} - cd "$srcdir/$pkgname-$pkgver" +package() { + cd "${pkgname}-${pkgver}" - cargo install \ - --locked \ - --path . \ - --features stable \ - --root "${pkgdir}"/usr + install -Dm0755 -t "${pkgdir}/usr/bin" \ + target/release/nu $(find target/release -maxdepth 1 -type f -executable -name 'nu_plugin_*') - rm -f "${pkgdir}"/usr/.crate* + install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |