Skip to content

Instantly share code, notes, and snippets.

@mystal
Last active June 10, 2020 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mystal/a0ceb945141d36e0d1bf64676d0d256e to your computer and use it in GitHub Desktop.
Save mystal/a0ceb945141d36e0d1bf64676d0d256e to your computer and use it in GitHub Desktop.
nushell-bin 0.15 PKGBUILD
# Maintainer: Jonathan Mast <jon@jonmast.com>
# Based on nushell package, but uses prebuilt binary
pkgname=nushell-bin
pkgver=0.15.0
_underscoredpkgver=0_15_0
pkgrel=2
depends=('zlib' 'libxcb' 'openssl' 'libgit2')
optdepends=('libx11: for binaryview plugin')
arch=('i686' 'x86_64')
pkgdesc="A shell for the GitHub era"
conflicts=('nushell')
install=nushell-bin.install
source=("$pkgname-$pkgver.tar.gz::https://github.com/nushell/nushell/releases/download/$pkgver/nu_${_underscoredpkgver}_linux.tar.gz"
"https://raw.githubusercontent.com/nushell/nushell/$pkgver/LICENSE")
url="http://nushell.sh"
license=('MIT')
sha256sums=('cf3ea9eae4629af2382108c25675977dd4875f1c3213be85c3e40de8bae83dfe'
'57fdb6634a2372af0978dd178f8e157f227d96f3ca27ae9c73f1320f6c0c41d4')
build() {
return 0
}
package() {
install -dm755 "${pkgdir}/usr/bin/"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cd "$srcdir/nu_${_underscoredpkgver}_linux/nushell_${_underscoredpkgver}"
# Install nu and plugins into /usr/bin
cp nu "${pkgdir}/usr/bin/nu"
cp nu_plugin_* "${pkgdir}/usr/bin/"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment