summaryrefslogtreecommitdiff
path: root/core/dash
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-08-17 02:02:00 -0500
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-08-17 02:02:00 -0500
commit504c0995d4baf5312d15d87e85cccecfaf878b27 (patch)
tree83f0956a700bcbd8d7b506002dbeef354ca62b48 /core/dash
parent13759ad562d5a15571c5ffc17217c3871bbe886f (diff)
Commiting libre package gcc-4.6.1-2
Diffstat (limited to 'core/dash')
-rw-r--r--core/dash/PKGBUILD8
-rw-r--r--core/dash/dash.install11
2 files changed, 15 insertions, 4 deletions
diff --git a/core/dash/PKGBUILD b/core/dash/PKGBUILD
index 8fdef96e2..3aeb4b3fe 100644
--- a/core/dash/PKGBUILD
+++ b/core/dash/PKGBUILD
@@ -1,15 +1,15 @@
-# $Id: PKGBUILD 132155 2011-07-21 15:03:34Z dan $
+# $Id: PKGBUILD 135572 2011-08-15 22:58:37Z tomegun $
# Maintainer: Dan McGee <dan@archlinux.org>
pkgname=dash
pkgver=0.5.7
-pkgrel=1
+pkgrel=2
pkgdesc="A POSIX compliant shell that aims to be as small as possible"
-arch=('i686' 'x86_64' 'mips64el')
+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')
diff --git a/core/dash/dash.install b/core/dash/dash.install
new file mode 100644
index 000000000..6b04cba30
--- /dev/null
+++ b/core/dash/dash.install
@@ -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
+}