summaryrefslogtreecommitdiff
path: root/repo/elvish/elvish.xibuild
blob: dd97671ad4b1f70c4a29c8dff75824a45553b5bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

NAME="elvish"
DESC="A friendly and expressive shell for Linux, macOS and BSDs"

MAKEDEPS=" go"

PKG_VER=0.18.0
SOURCE="https://github.com/elves/elvish/archive/v$PKG_VER.tar.gz"

build() {
    mkdir gopath
	export GOPATH="$BUILD_ROOT/gopath"
	go build -o bin/elvish
}

package() {
	install -Dm755 bin/elvish "$PKG_DEST"/usr/bin
}