diff options
author | Hexchain Tong | 2016-03-30 13:01:33 +0800 |
---|---|---|
committer | Hexchain Tong | 2016-03-30 13:01:33 +0800 |
commit | c33c6871d8d70d2fbed42096d9fb45409b89b904 (patch) | |
tree | d9d2ff8b2e06b2e2687f0400578544160ffdefe6 | |
parent | effc8ee961dd388db6dab1a50accfc8040feb390 (diff) | |
download | aur-c33c6871d8d70d2fbed42096d9fb45409b89b904.tar.gz |
add elvish to /etc/shells
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 1 | ||||
-rw-r--r-- | elvish.install | 9 |
3 files changed, 12 insertions, 1 deletions
@@ -1,10 +1,11 @@ # Generated by mksrcinfo v8 -# Wed Mar 30 04:45:22 UTC 2016 +# Wed Mar 30 05:00:12 UTC 2016 pkgbase = elvish-git pkgdesc = A novel Unix shell. pkgver = r1760.f363571 pkgrel = 1 url = https://github.com/elves/elvish + install = elvish.install arch = i686 arch = x86_64 license = custom:2-clause BSD @@ -14,6 +14,7 @@ depends=('glibc') makedepends=('git' 'go') source=("git+https://github.com/elves/elvish.git") md5sums=('SKIP') +install=elvish.install pkgver() { cd "$_pkgname" diff --git a/elvish.install b/elvish.install new file mode 100644 index 000000000000..41414644e72c --- /dev/null +++ b/elvish.install @@ -0,0 +1,9 @@ +post_install() { + grep -qe '^/usr/bin/elvish$' etc/shells || echo '/usr/bin/elvish' >> etc/shells +} + +pre_remove() { + sed -ri '\|^/usr/bin/elvish$|d' etc/shells +} + +# vim:set ts=2 sw=2 et: |