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

VERSION=9.2.0
PROGNAME="ELF Libraries"
DESC="\
elflibs (shared libraries needed by many programs)                    \n\
                                                                      \n\
This is a collection of shared libraries needed to run Linux programs.\n\
ELF (Executable and Linking Format) is the standard Linux binary      \n\
format.  These libraries are gathered from other Slackware packages   \n\
and are intended to give a fairly complete set of runtime ELF         \n\
libraries without having to install every package these libraries come\n\
from.  If you're doing a full installation, these libraries are       \n\
redundant, but installing them doesn't hurt."

BUILD=1
MAINTAINER="Mark Post <mark.post@eds.com>"
SOURCE=N/A
PKGNAME=aaa_elflibs-$VERSION-s390-$BUILD

compile() {
   echo Nothing to compile for elflibs
}

install() {
   mkdir -p /package-elflibs/lib \
            /package-elflibs/usr/lib

   cd /lib
   cp -a libbz2.so* libdb-3*.so* libdb-4.2.so \
         libgpm.so* libncurses*.so* libtermcap.so* \
      /package-elflibs/lib/

   cd /usr/lib
   cp -a libasound.so* libcups.so* libcupsimage.so* libcurl.so* libexpat.so* \
         libfbm.so* libform.so* libformw.so* \
         libfreetype.so* libgcc_s.so* libgdbm.so* libglib-2.0.so* libgmodule-2.0.so* \
         libgmp.so* libgmpxx.so* libgobject-2.0.so* libgthread-2.0.so* libhistory.so* \
         libjpeg.so* libmenu.so* libmenuw.so* libmp.so* libpanel.so* libpanelw.so* \
         libpbm.so* libpcre.so* libpcreposix.so* libpgm.so* libpng*.so* libpnm.so* \
         libpopt.so* libppm.so* libreadline.so* librle.so* libslang.so* \
         libtiff.so* libusb-0.1.so* libz.so* \
       /package-elflibs/usr/lib/
}

attributes() {
   chown -R root.root $PKG/package-elflibs
   chmod -R 755 $PKG/package-elflibs
}

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

   cd $CTL
   cat $CWD/slack-desc > slack-desc

   sed -e 's%package-elflibs/%%g' doinst.sh > doinst.sh.new
   cat doinst.sh.new > doinst.sh
   rm doinst.sh.new
}

