mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 07:02:29 +01:00
32 lines
808 B
Plaintext
32 lines
808 B
Plaintext
# Maintainer: Daniel Isaksen <d@duniel.no>
|
|
pkgname=elvish
|
|
pkgver=0.12
|
|
pkgrel=0
|
|
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"
|