aboutsummaryrefslogtreecommitdiffstats
path: root/testing/elvish/APKBUILD
blob: 86fa577b4227087446fa4fd6d05246eb22914add (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
# Maintainer: Daniel Isaksen <d@duniel.no>
pkgname=elvish
pkgver=0.13
pkgrel=0
pkgdesc="A friendly and expressive shell for Linux, macOS and BSDs"
url="https://elvish.io/"
arch="all"
license="BSD-2-Clause"
makedepends="go"
options="!check chmod-clean"
source="$pkgname-$pkgver.tar.gz::https://github.com/elves/elvish/archive/v$pkgver.tar.gz"
builddir="$srcdir/src/github.com/elves/$pkgname"

prepare() {
	mkdir -p ${builddir%/*}
	mv "$srcdir"/$pkgname-$pkgver "$builddir"/
	default_prepare
}

build() {
	export GOPATH="$srcdir"
	go build -o bin/$pkgname
}

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

sha512sums="7cafed0c1b82a8042b5b403b8aa44182a248d99e819108187163356ae6e3945c35cae9065eac6f0c98722b056d1db6a210c07966ff8aef9c44c9b11b3f6a1475  elvish-0.13.tar.gz"