testing/nushell: add install scripts

Signed-off-by: nibon7 <nibon7@163.com>
This commit is contained in:
nibon7 2021-11-18 09:04:19 +08:00 committed by Leo
parent a32d2425ae
commit f6276e5543
4 changed files with 9 additions and 1 deletions

View File

@ -2,13 +2,14 @@
# Maintainer: nibon7 <nibon7@163.com>
pkgname=nushell
pkgver=0.40.0
pkgrel=0
pkgrel=1
pkgdesc="A new type of shell"
url="https://www.nushell.sh"
# s390x, mips, mips64: limited by cargo
arch="all !s390x !mips !mips64 !riscv64"
license="MIT"
makedepends="cargo pkgconf openssl1.1-compat-dev libx11-dev libxcb-dev libgit2-dev python3"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
source="$pkgname-$pkgver.tar.gz::https://github.com/nushell/nushell/archive/$pkgver.tar.gz
0001-remove-dataframe-feature-from-default.patch"

View File

@ -0,0 +1,3 @@
#!/bin/sh
add-shell '/usr/bin/nu'
exit 0

View File

@ -0,0 +1 @@
nushell.post-install

View File

@ -0,0 +1,3 @@
#!/bin/sh
remove-shell '/usr/bin/nu'
exit 0