blob: 72bef6f5218529c656c2f450fd109cd27dfaed03 (
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
32
33
34
35
36
37
38
39
|
# Maintainer: Haochen Tong <i at hexchain dot org>
pkgname=elvish
pkgver=0.11
pkgrel=1
pkgdesc="A friendly and expressive Unix shell."
arch=('i686' 'x86_64')
url="https://github.com/elves/elvish"
license=('custom:2-clause BSD')
provides=('elvish')
makedepends=('git' 'go')
depends=('glibc')
source=("git+https://github.com/elves/elvish.git#tag=$pkgver")
md5sums=('SKIP')
install=elvish.install
prepare() {
cd "$srcdir"
mkdir -p build/src/github.com/elves
ln -sf "$srcdir/$pkgname" build/src/github.com/elves/
}
build() {
export GOPATH="$srcdir/build"
cd "$GOPATH/src/github.com/elves/elvish"
make get
}
check() {
export GOPATH="$srcdir/build"
cd "$GOPATH/src/github.com/elves/elvish"
make test
}
package() {
install -Dm755 "$srcdir/build/bin/elvish" -t "$pkgdir/usr/bin/"
install -Dm644 "$srcdir/$pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|