summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHexchain Tong2016-10-26 21:49:41 +0800
committerHexchain Tong2016-10-26 21:49:41 +0800
commitee74e210e01812aac9c696f62d24acf0e8f915fb (patch)
treee853eb17802e6ac05698932049197a70f65beb02
parentc33c6871d8d70d2fbed42096d9fb45409b89b904 (diff)
downloadaur-ee74e210e01812aac9c696f62d24acf0e8f915fb.tar.gz
upgpkg
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD6
-rw-r--r--elvish.install5
3 files changed, 8 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5164eb19e397..e3497b89702e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Wed Mar 30 05:00:12 UTC 2016
+# Wed Oct 26 13:49:29 UTC 2016
pkgbase = elvish-git
pkgdesc = A novel Unix shell.
- pkgver = r1760.f363571
+ pkgver = r2046.df1d282
pkgrel = 1
url = https://github.com/elves/elvish
install = elvish.install
diff --git a/PKGBUILD b/PKGBUILD
index bb783e262639..cc1d3b8a8e1d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=elvish-git
_pkgname=elvish
-pkgver=r1760.f363571
+pkgver=r2046.df1d282
pkgrel=1
pkgdesc="A novel Unix shell."
arch=('i686' 'x86_64')
@@ -31,7 +31,7 @@ prepare() {
build() {
cd "$GOPATH/src/github.com/elves/elvish"
- make get stub
+ make get
}
check() {
@@ -40,6 +40,6 @@ check() {
}
package() {
- install -Dm755 "$srcdir/build/bin/elvish"{,-stub} -t "$pkgdir/usr/bin/"
+ install -Dm755 "$srcdir/build/bin/elvish" -t "$pkgdir/usr/bin/"
install -Dm644 "$srcdir/$_pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
}
diff --git a/elvish.install b/elvish.install
index 41414644e72c..aeaacf13793d 100644
--- a/elvish.install
+++ b/elvish.install
@@ -1,9 +1,10 @@
post_install() {
- grep -qe '^/usr/bin/elvish$' etc/shells || echo '/usr/bin/elvish' >> etc/shells
+ grep -qe '^/usr/bin/elvish$' etc/shells || echo "/usr/bin/elvish" >> etc/shells
+ grep -qe '^/bin/elvish$' etc/shells || echo "/bin/elvish" >> etc/shells
}
pre_remove() {
- sed -ri '\|^/usr/bin/elvish$|d' etc/shells
+ sed -ri -e '\|^/usr/bin/elvish$|d' -e '\|^/bin/elvish$|d' etc/shells
}
# vim:set ts=2 sw=2 et: