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

VERSION=1.0.3
PROGNAME="linc $VERSION"
DESC="\
linc                                                                   \n\
                                                                       \n\
linc is a library that eases the task of writing networked servers and \n\
clients.  It takes care of connection initiation and maintainance, and \n\
the details of various transports.  It is used by the new ORBit to     \n\
handle message transmission and receipt."

BUILD=1
MAINTAINER="Mark Post <mark.post@eds.com>"
SOURCE=ftp://ftp.gnu.org/pub/gnu/linc
PKGNAME=linc-$VERSION-s390-$BUILD
TAG=OPT

compile() {
   tar -yxvf $CWD/linc-$VERSION.tar.bz2
   cd linc-$VERSION/
   chown -R root.root .
   find . -perm 666 -exec chmod 644 {} \;
   find . -perm 664 -exec chmod 644 {} \;
   CFLAGS=-O2 \
   ./configure --prefix=/usr \
               --sysconfdir=/etc \
               --localstatedir=/var/lib \
               --build=s390-slackware-linux \
               --host=s390-slackware-linux \
               --target=s390-slackware-linux
   make
}

install() {
   make install DESTDIR=/package-linc

   mkdir -p /package-linc/usr/doc/linc-$VERSION
   cp -a AUTHORS COPYING HACKING MAINTAINERS NEWS README \
       /package-linc/usr/doc/linc-$VERSION
}

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

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

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

