Package Details: elvish-git 0.r804.374c85b-1

Package Base: elvish-git
Description: An experimental Unix shell
Upstream URL: https://github.com/xiaq/elvish
Category: system
Licenses: BSD-2
Submitter: Soulou
Maintainer: Soulou
Last Packager: Soulou
Votes: 4
First Submitted: 2014-07-27 01:37
Last Updated: 2014-11-07 00:01

Dependencies (2)

Required by (0)

Sources

Latest Comments

Comment by Soulou

2014-11-07 00:01

Done !

Comment by EvertVP

2014-11-06 18:25

Could you please add elvish to /etc/shells/.
Here's how the zsh package does it: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/zsh.install?h=packages/zsh

Anonymous comment

2014-07-28 21:02

oops

Comment by bezerker

2014-07-28 03:50

Awesome. Thanks Soulou.

Comment by Soulou

2014-07-28 00:15

It is fixed, the patch of Pyroh, broke this. GOPATH needs to be exported for the go command. It should work now.

Comment by bezerker

2014-07-28 00:03

Seeing the following when running makepkg on this.

==> Validating source files with md5sums...
elvish ... Skipped
==> Extracting sources...
-> Creating working copy of elvish git repo...
Cloning into 'elvish'...
done.
==> Starting pkgver()...
==> Starting build()...
package github.com/xiaq/elvish: cannot download, $GOPATH not set. For more details see: go help gopath
==> ERROR: A failure occurred in build().
Aborting...


I see it defined in the PKGBUILD but doesn't seem to be functioning.

Comment by Soulou

2014-07-27 22:56

Thank you for the patch, PKGBUILD updated.

Anonymous comment

2014-07-27 21:25

I made a little patch, all it does is remove unnecessary $srcdir invocation[0]
and quotes around the export.

[0]https://wiki.archlinux.org/index.php/Creating_packages#The_build.28.29_function

--- PKGBUILD 2014-07-27 05:24:32.000000000 -0400
+++ PKGBUILD-new 2014-07-27 17:21:03.013362556 -0400
@@ -1,7 +1,7 @@

pkgname=elvish-git
_gitname=elvish
-pkgver=0.r714.5283227
+pkgver=0.r717.4df2d05
pkgrel=1
pkgdesc='An experimental Unix shell'
license=('BSD-2')
@@ -13,19 +13,19 @@
md5sums=('SKIP')

pkgver() {
- cd "${srcdir}/${_gitname}"
+ cd "${_gitname}"
printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
- cd "${srcdir}/${_gitname}"
- export GOPATH=${srcdir}/${_gitname}
+ cd "${_gitname}"
+ GOPATH="${srcdir}/${_gitname}"
go get github.com/xiaq/elvish
}

package() {
- install -Dm755 "${srcdir}/${_gitname}/bin/${_gitname}" "${pkgdir}/usr/bin/${_gitname}"
- install -Dm644 "${srcdir}/${_gitname}/src/github.com/xiaq/elvish/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm755 "${_gitname}/bin/${_gitname}" "${pkgdir}/usr/bin/${_gitname}"
+ install -Dm644 "${_gitname}/src/github.com/xiaq/elvish/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et:

Comment by Soulou

2014-07-27 09:24

Yes, my bad, I forgot to comment them out, it's done :)

Comment by gilesc

2014-07-27 06:43

source and md5sums are commented out, it works when the comments are removed.