Done !
Search Criteria
Package Details: elvish-git 0.r804.374c85b-1
Package Actions
| Package Base: | elvish-git |
|---|---|
| Description: | An experimental Unix shell |
| Upstream URL: | https://github.com/xiaq/elvish |
| Category: | system |
| Licenses: | |
| Submitter: | Soulou |
| Maintainer: | Soulou |
| Last Packager: | Soulou |
| Votes: | 4 |
| First Submitted: | 2014-07-27 01:37 |
| Last Updated: | 2014-11-07 00:01 |
Required by (0)
Sources
Latest Comments
Comment by Soulou
Comment by EvertVP
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
oops
Comment by bezerker
Awesome. Thanks Soulou.
Comment by Soulou
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
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
Thank you for the patch, PKGBUILD updated.
Anonymous comment
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
Yes, my bad, I forgot to comment them out, it's done :)
Comment by gilesc
source and md5sums are commented out, it works when the comments are removed.