diff options
author | Luca Weiss | 2017-10-08 11:21:25 +0200 |
---|---|---|
committer | Luca Weiss | 2017-10-08 11:21:25 +0200 |
commit | 63016967458261fd90b9b00c5de7c71973c01a74 (patch) | |
tree | 7bd7265dee47a84bcc2fb93047090a247de0bbd5 | |
parent | da3a2e07bd043798664cc4812af3ee73e8865516 (diff) | |
download | aur-63016967458261fd90b9b00c5de7c71973c01a74.tar.gz |
Add ion to /etc/shells
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 3 | ||||
-rw-r--r-- | ion-git.install | 13 |
3 files changed, 17 insertions, 4 deletions
@@ -1,10 +1,9 @@ -# Generated by mksrcinfo v8 -# Tue May 9 09:23:04 UTC 2017 pkgbase = ion-git pkgdesc = The Ion Shell. Compatible with Redox and Linux. (Git version) - pkgver = r556.ae73d27 + pkgver = r912.2e4bd37 pkgrel = 1 url = https://github.com/redox-os/ion + install = ion-git.install arch = x86_64 arch = i686 license = MIT @@ -2,7 +2,7 @@ _pkgname=ion pkgname=$_pkgname-git -pkgver=r556.ae73d27 +pkgver=r912.2e4bd37 pkgrel=1 pkgdesc="The Ion Shell. Compatible with Redox and Linux. (Git version)" arch=("x86_64" "i686") @@ -11,6 +11,7 @@ license=('MIT') makedepends=('git' 'cargo') provides=("$_pkgname") conflicts=("$_pkgname") +install=ion-git.install source=('git+https://github.com/redox-os/ion.git') sha512sums=('SKIP') diff --git a/ion-git.install b/ion-git.install new file mode 100644 index 000000000000..5113df6f145e --- /dev/null +++ b/ion-git.install @@ -0,0 +1,13 @@ +post_install() { + grep -qe '^/usr/bin/ion$' etc/shells || echo '/usr/bin/ion' >> etc/shells +} + +post_upgrade() { + post_install +} + +pre_remove() { + sed -ri '\|^/usr/bin/ion$|d' etc/shells +} + +# vim:set ts=2 sw=2 et: |