[arch-commits] Commit in dash/trunk (PKGBUILD dash.install)

Tom Gundersen tomegun at archlinux.org
Tue Aug 9 23:35:12 UTC 2011


    Date: Tuesday, August 9, 2011 @ 19:35:12
  Author: tomegun
Revision: 135038

upgpkg: dash 0.5.7-1
remove from base

Added:
  dash/trunk/dash.install
Modified:
  dash/trunk/PKGBUILD

--------------+
 PKGBUILD     |    2 +-
 dash.install |   11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-08-09 23:33:52 UTC (rev 135037)
+++ PKGBUILD	2011-08-09 23:35:12 UTC (rev 135038)
@@ -8,8 +8,8 @@
 arch=('i686' 'x86_64')
 url="http://gondor.apana.org.au/~herbert/dash/"
 license=('BSD')
-groups=('base')
 depends=('glibc')
+install=dash.install
 source=("http://gondor.apana.org.au/~herbert/dash/files/${pkgname}-${pkgver}.tar.gz")
 sha1sums=('a3ebc16f2e2c7ae8adf64e5e62ae3dcb631717c6')
 

Added: dash.install
===================================================================
--- dash.install	                        (rev 0)
+++ dash.install	2011-08-09 23:35:12 UTC (rev 135038)
@@ -0,0 +1,11 @@
+post_install() {
+	grep -q '/bin/dash' etc/shells || echo '/bin/dash' >> etc/shells
+}
+
+post_upgrade() {
+	post_install
+}
+
+pre_remove() {
+	sed -i '/^\/bin\/dash/d' etc/shells
+}




More information about the arch-commits mailing list