IGNOREPATH=/home:/var:/dev:/boot:/root:/tmp:/usr/local:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=4.2.0 PROGNAME="z shell $VERSION" DESC="\ zsh (the Z shell) \n\ \n\ Zsh is a UNIX command interpreter (shell) which of the standard shells \n\ most resembles the Korn shell (ksh), although it is not completely \n\ compatible. It includes enhancements of many types, notably in the \n\ command-line editor, options for customizing its behavior, filename \n\ globbing, features to make C-shell (csh) users feel more at home and \n\ extra features drawn from tcsh (another 'custom' shell). Zsh was \n\ written by Paul Falstad." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.zsh.org/pub PKGNAME=zsh-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/zsh-$VERSION.tar.bz2 tar -yxvf $CWD/zsh-$VERSION-doc.tar.bz2 cd zsh-$VERSION/ chown -R root.root . CFLAGS=-O2 \ ./configure --prefix=/usr s390-slackware-linux make } install() { make install DESTDIR=/package-zsh ( cd /package-zsh/usr mv bin/ .. ) mkdir -p /package-zsh/usr/doc/zsh-$VERSION/html-docs cp -a INSTALL LICENCE META-FAQ README /package-zsh/usr/doc/zsh-$VERSION cp -r Doc/*.html /package-zsh/usr/doc/zsh-$VERSION/html-docs mkdir -p /package-zsh/usr/info cp -a Doc/*info* /package-zsh/usr/info/ ( cd /package-zsh/usr/info rm -f *.gz gzip -9 * ) ( cd /package-zsh/usr/man/man1 rm -f *.gz gzip -9 *.1 ) ( cd /package-zsh/bin rm -rf zsh-$VERSION ; ln -sf zsh zsh-$VERSION ) ( mkdir -p /package-zsh/etc cd /package-zsh/etc rm -rf zprofile ; ln -sf profile zprofile ) } attributes () { chown -R root.bin $PKG/package-zsh/bin } special() { cd $PKG mv package-zsh/* ./ rmdir package-zsh cd $CTL cat $CWD/slack-desc > slack-desc zcat $CWD/doinst.sh.gz >> doinst.sh # cat <> doinst.sh #( cd etc ; rm -rf zprofile ) #( cd etc ; ln -sf profile zprofile ) #EOF sed -e 's%package-zsh/%%' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }