blob: 9096d30852c2e3ed4ff8573957c4914a146edf9e (
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=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"
|