summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Weiss2017-10-08 11:21:25 +0200
committerLuca Weiss2017-10-08 11:21:25 +0200
commit63016967458261fd90b9b00c5de7c71973c01a74 (patch)
tree7bd7265dee47a84bcc2fb93047090a247de0bbd5
parentda3a2e07bd043798664cc4812af3ee73e8865516 (diff)
downloadaur-63016967458261fd90b9b00c5de7c71973c01a74.tar.gz
Add ion to /etc/shells
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD3
-rw-r--r--ion-git.install13
3 files changed, 17 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a51bcc0bbf70..d3779fed986a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 2d19bc70ee53..f782b56419e1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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: