summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af9a02f60615c33f32542dabc9487fe66fcc5686 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: Jonathan Mast <jon@jonmast.com>
# Maintainer: Michael Berlinger <michaelmberlinger@gmail.com>
# Contributor: Hoàng Văn Khải <hvksmr1996@gmail.com>
# Based on nushell package, but uses prebuilt binary

pkgname=nushell-bin
pkgver=0.29.0
_underscoredpkgver="${pkgver//./_}"
pkgrel=1
depends=('zlib' 'libxcb' 'openssl' 'libgit2')
optdepends=('libx11: for binaryview plugin')
arch=('i686' 'x86_64')
pkgdesc="A new type of shell"
provides=('nushell')
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=('25ae2d99ba2af013294c89056c16120a5a5c48a7211b9a8aadf14722c53dd419'
            '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-${pkgver}"

  # Install nu and plugins into /usr/bin
  cp nu "${pkgdir}/usr/bin/nu"
  cp nu_plugin_* "${pkgdir}/usr/bin/"
}