#!/bin/sh set -e # Copyright (c) 2005-2006 Frederick Emmott CWD=`pwd` VERSION=11.0.0 ARCH=x86_64 BUILD=1 ELFLIBS=aaa_elflibs-11.0.0-i486-7.tgz GLIBC=glibc-solibs-2.3.6-i486-3.tgz ZLIB=zlib-1.2.3-i486-1.tgz CXXLIBS=cxxlibs-6.0.3-i486-1.tgz PKG=/tmp/package-32base rm -rf $PKG mkdir -p $PKG cd $PKG for file in $CWD/{$ELFLIBS,$GLIBC,$ZLIB,$CXXLIBS}; do tar zxfv $file; done mv $PKG/usr/i486-slackware-linux/lib/libstdc++.so.5.0.7 $PKG/usr/lib mv $PKG/usr/lib $PKG/_lib rm -rf $PKG/usr mkdir $PKG/usr mv $PKG/_lib $PKG/usr/lib mv lib/incoming/* lib mv lib/tls/incoming/* lib/ rm -rf lib/incoming lib/tls rm -rf $PKG/usr/lib/pkgconfig ( cd $PKG ; find -name "*.la" | xargs rm -f ; find -name "*.a" | xargs rm -f ) rm -rf $PKG/sbin rm -rf $PKG/install mkdir $PKG/install cat $CWD/slack-desc > install/slack-desc ldconfig -n $PKG/lib ldconfig -n $PKG/usr/lib makepkg -l y -c n ../32base-$VERSION-$ARCH-$BUILD.tgz