[arch-commits] Commit in zsh/trunk (PKGBUILD zprofile)

Pierre Schmitz pierre at archlinux.org
Wed Dec 7 14:58:28 UTC 2011


    Date: Wednesday, December 7, 2011 @ 09:58:28
  Author: pierre
Revision: 144591

Use /etc/zsh/zprofile to source /etc/profile in sh emulation mode

Added:
  zsh/trunk/zprofile
Modified:
  zsh/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++----
 zprofile |    1 +
 2 files changed, 9 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-12-07 12:54:45 UTC (rev 144590)
+++ PKGBUILD	2011-12-07 14:58:28 UTC (rev 144591)
@@ -3,15 +3,18 @@
 
 pkgname=zsh
 pkgver=4.3.14
-pkgrel=1
+pkgrel=2
 pkgdesc='A very advanced and programmable command interpreter (shell) for UNIX'
 arch=('i686' 'x86_64')
 url='http://www.zsh.org/'
 license=('custom')
 depends=('pcre' 'libcap' 'gdbm')
 install=zsh.install
-source=("ftp://ftp.zsh.org/pub/${pkgname}-${pkgver}.tar.bz2")
-md5sums=('1c819a3ff7302b42eba988e333e76109')
+source=("ftp://ftp.zsh.org/pub/${pkgname}-${pkgver}.tar.bz2"
+        'zprofile')
+backup=('etc/zsh/zprofile')
+md5sums=('1c819a3ff7302b42eba988e333e76109'
+         '24a9335edf77252a7b5f52e079f7aef7')
 
 build() {
 	cd "${srcdir}/${pkgname}-${pkgver}"
@@ -26,7 +29,7 @@
 		--enable-zshenv=/etc/zsh/zshenv \
 		--enable-zlogin=/etc/zsh/zlogin \
 		--enable-zlogout=/etc/zsh/zlogout \
-		--enable-zprofile=/etc/profile \
+		--enable-zprofile=/etc/zsh/zprofile \
 		--enable-zshrc=/etc/zsh/zshrc \
 		--enable-maildir-support \
 		--with-term-lib='ncursesw' \
@@ -51,5 +54,6 @@
 package() {
 	cd "${srcdir}/${pkgname}-${pkgver}"
 	make DESTDIR="${pkgdir}/" install
+	install -D -m644 "${srcdir}/zprofile" "${pkgdir}/etc/zsh/zprofile"
 	install -D -m644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }

Added: zprofile
===================================================================
--- zprofile	                        (rev 0)
+++ zprofile	2011-12-07 14:58:28 UTC (rev 144591)
@@ -0,0 +1 @@
+emulate sh -c 'source /etc/profile'




More information about the arch-commits mailing list