IGNOREPATH=/home:/dev:/boot:/root:/tmp:/usr/local:/bin:/mnt:/var:/usr/src
STRIPLIB=y
STRIPBIN=y

VERSION=3.1.1
PROGNAME="ytalk $VERSION"
DESC="\
ytalk (multi-user chat program)                                        \n\
                                                                       \n\
YTalk is a multi-user chat program.  It works almost exactly like the  \n\
UNIX talk program and even communicates with the same talk daemon, but \n\
YTalk allows for multiple connections."

BUILD=1
MAINTAINER="Mark Post <mark.post@eds.com>"
SOURCE=ftp://quatramaran.ens.fr/pub/orabidoo/ytalk/
PKGNAME=ytalk-$VERSION-s390-$BUILD
TAG=OPT

compile() {
   tar -xvzf $CWD/ytalk-$VERSION.tar.gz
   cd ytalk-$VERSION/
   ./configure --prefix=/usr \
               --sysconfdir=/etc \
               --with-x=no \
               s390-slackware-linux
   make
}

install() {
   make install prefix=/package-ytalk/usr sysconfdir=/package-ytalk/etc

   mkdir -p /package-ytalk/usr/doc/ytalk-$VERSION
   cp -a BUGS ChangeLog INSTALL README README.old ytalk-3.1.1.lsm \
       /package-ytalk/usr/doc/ytalk-$VERSION

   gzip -9 /package-ytalk/usr/man/man1/*
}

attributes() {
   chown -R root.bin $PKG//package-ytalk/usr/bin
}

special() {
   cd $PKG
   mv package-ytalk/* ./
   rmdir package-ytalk

   cd $CTL
   cat $CWD/slack-desc > slack-desc
   sed -e 's%package-ytalk/%%g' doinst.sh > doinst.sh.new
   cat doinst.sh.new > doinst.sh
   rm doinst.sh.new
}

