diff options
author | GoliathLabs | 2020-07-06 12:07:03 +0200 |
---|---|---|
committer | GoliathLabs | 2020-07-06 12:07:03 +0200 |
commit | 84c873a3e4b30799fc8931e5c506a3a4d130d595 (patch) | |
tree | 4a04207516d377de899e7e5924de348d59def824 | |
parent | 3aba2d9b3d326b5d3987538d9638350fa82e12f7 (diff) | |
download | aur-84c873a3e4b30799fc8931e5c506a3a4d130d595.tar.gz |
Updated: PKGBUILD
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 5 | ||||
-rw-r--r-- | nushell.install | 13 |
3 files changed, 18 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = nushell pkgdesc = A new type of shell. pkgver = 0.16.0 - pkgrel = 1 + pkgrel = 2 url = https://www.nushell.sh arch = x86_64 arch = i686 @@ -14,4 +14,5 @@ pkgbase = nushell sha256sums = ba596706bfdb58d10f1185ae0f9cd0988ab77a9972daefba5c93306f6ed314d6 pkgname = nushell + install = nushell.install @@ -6,7 +6,7 @@ _pkgname=nu pkgname=${_pkgname}shell pkgver=0.16.0 -pkgrel=1 +pkgrel=2 pkgdesc="A new type of shell." url="https://www.nushell.sh" license=('MIT') @@ -19,6 +19,8 @@ source=("https://github.com/nushell/nushell/archive/$pkgver.tar.gz") sha256sums=('ba596706bfdb58d10f1185ae0f9cd0988ab77a9972daefba5c93306f6ed314d6') package() { + install=nushell.install + cd "$srcdir/$pkgname-$pkgver" cargo install \ @@ -29,4 +31,3 @@ package() { rm -f "${pkgdir}"/usr/.crate* } - diff --git a/nushell.install b/nushell.install new file mode 100644 index 000000000000..1e911204aaf5 --- /dev/null +++ b/nushell.install @@ -0,0 +1,13 @@ + +post_install() { + grep -qe '^/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 + } + |