summaryrefslogtreecommitdiff
path: root/extra/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'extra/zsh')
-rw-r--r--extra/zsh/PKGBUILD10
-rw-r--r--extra/zsh/zsh.install11
2 files changed, 16 insertions, 5 deletions
diff --git a/extra/zsh/PKGBUILD b/extra/zsh/PKGBUILD
index d594bcef6..0deda06b7 100644
--- a/extra/zsh/PKGBUILD
+++ b/extra/zsh/PKGBUILD
@@ -1,18 +1,18 @@
-# $Id: PKGBUILD 164038 2012-07-24 20:46:25Z pierre $
+# $Id: PKGBUILD 171491 2012-11-18 04:23:42Z eric $
# Maintainer: Pierre Schmitz <pierre@archlinux.de>
pkgname=zsh
pkgver=5.0.0
-pkgrel=2
+pkgrel=3
pkgdesc='A very advanced and programmable command interpreter (shell) for UNIX'
arch=('i686' 'x86_64' 'mips64el')
url='http://www.zsh.org/'
license=('custom')
depends=('pcre' 'libcap' 'gdbm')
+backup=('etc/zsh/zprofile')
install=zsh.install
source=("ftp://ftp.zsh.org/pub/${pkgname}-${pkgver}.tar.bz2"
'zprofile')
-backup=('etc/zsh/zprofile')
md5sums=('e8484468925cec8d9a84b8b04797e764'
'24a9335edf77252a7b5f52e079f7aef7')
@@ -51,7 +51,7 @@ build() {
--enable-pcre \
--enable-cap \
--enable-zsh-secure-free
- make
+ make all info
}
check() {
@@ -61,7 +61,7 @@ check() {
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}/" install
+ make DESTDIR="${pkgdir}/" install install.info
install -D -m644 "${srcdir}/zprofile" "${pkgdir}/etc/zsh/zprofile"
install -D -m644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
diff --git a/extra/zsh/zsh.install b/extra/zsh/zsh.install
index e2a53bea8..8e54d92ee 100644
--- a/extra/zsh/zsh.install
+++ b/extra/zsh/zsh.install
@@ -1,5 +1,12 @@
+infodir=usr/share/info
+filelist=(zsh.info zsh.info-1 zsh.info-2 zsh.info-3 zsh.info-4 zsh.info-5 zsh.info-6)
+
post_install() {
grep -q '/bin/zsh' etc/shells || echo '/bin/zsh' >> etc/shells
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
}
post_upgrade() {
@@ -8,4 +15,8 @@ post_upgrade() {
pre_remove() {
sed -i '/^\/bin\/zsh/d' etc/shells
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
}