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

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

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

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

sha512sums="21e31caf997d23412c8a9d2ed9b3bcfb60763e17af4ec4ee09db9027e10ebab4fd331a4be7d5b60ba0aa5ff1a7c5709762e5375f61cac0cbf18bf3d4e73d46fa  elvish-0.12.tar.gz"