blob: 7a685aecea21ee691eace7bb7a0cb0743b1ec587 (
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: Maintainer: timescam <rex.ky.ng at gmail dot com>
pkgname="nsh-git"
_pkgname="nsh"
pkgver=0.4.2.581.g5760767
pkgrel=1
pkgdesc="A command-line shell like fish, but POSIX compatible"
arch=("i686" "x86_64")
url="https://github.com/nuta/nsh"
license=("CC0-1.0" "MIT")
depends=()
makedepends=("git" "rustup")
provides=("nsh")
conflicts=("nsh")
source=("$_pkgname::git+https://github.com/nuta/nsh.git")
sha256sums=("SKIP")
pkgver() {
cd "$_pkgname"
echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}
build() {
rustup install nightly
cd $_pkgname
cargo +nightly build --release --locked
}
check() {
cd $_pkgname
cargo +nightly test --release --locked
}
package() {
cd "$srcdir/$_pkgname"
install -Dm755 target/release/nsh "$pkgdir/usr/bin/nsh"
}
|