nibon7 5fc073e44c testing/nushell: enable ppc64le
Signed-off-by: nibon7 <nibon7@163.com>
2022-05-07 05:16:48 +00:00

48 lines
1.1 KiB
Plaintext

# Contributor: nibon7 <nibon7@163.com>
# Maintainer: nibon7 <nibon7@163.com>
pkgname=nushell
pkgver=0.62.0
pkgrel=1
pkgdesc="A new type of shell"
url="https://www.nushell.sh"
# s390x/riscv64 rust/cargo
arch="x86_64 armv7 armhf aarch64 x86 ppc64le"
license="MIT"
makedepends="cargo pkgconf openssl-dev libx11-dev libxcb-dev libgit2-dev"
subpackages="$pkgname-plugins:_plugins"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
source="$pkgname-$pkgver.tar.gz::https://github.com/nushell/nushell/archive/$pkgver.tar.gz"
prepare() {
default_prepare
cargo fetch --locked
}
build() {
cargo build --workspace --release --frozen
}
check() {
cargo test --workspace --frozen
}
package() {
find target/release \
-maxdepth 1 \
-executable \
-type f \
-name "nu*" \
-exec install -Dm755 '{}' -t "$pkgdir"/usr/bin/ \;
}
_plugins() {
pkgdesc="Nushell plugins"
depends="nushell"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/nu_plugin_* "$subpkgdir"/usr/bin/
}
sha512sums="f463c7f3bd6d0a8497530140df1fa0a499193415e16feb22c1d087f3263988fe5c3e6a161bb6fb33c6e4d8221bd704043488172361c85a7e68a2a6f2439635eb nushell-0.62.0.tar.gz
"