#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-kdenetwork # Set the config option variables if they are not already set: if [ -r ../KDE.options ]; then . ../KDE.options fi # The global options may be overridden here (if needed): if [ -r ./local.options ]; then . ./local.options fi rm -rf $PKG mkdir -p $PKG/usr # Avoid a version number in .la files: if [ -d /usr/lib/qt ]; then QTDIR=/usr/lib/qt fi cd $TMP echo "Building kdenetwork-$VERSION.tar.bz2..." tar xjvf $CWD/kdenetwork-$VERSION.tar.bz2 || exit 1 cd kdenetwork-$VERSION || exit 1 # # apply KDE on Steroids patches # echo " " echo " " echo ":: applying patchset..." echo "-----------------------" echo " " patch -p1 -i $CWD/02_kcm-fileshare.patch || exit 1 patch -p1 -i $CWD/04_kopete-reloading-kit.patch || exit 1 patch -p1 -i $CWD/05_kopete-emoticons-manager.patch || exit 1 patch -p1 -i $CWD/06_kopete-fix-extra-line-break-in-jabber.patch || exit 1 patch -p1 -i $CWD/07_kopete-fix-newlines-when-sending-richtext-icq.patch || exit 1 patch -p1 -i $CWD/08_kopete-show-previous-status-messages.patch || exit 1 patch -p1 -i $CWD/09_kopete-fix-translation-plugin.patch || exit 1 # needed for emoticons manager echo " " echo " " echo " " echo ":: regenerating makefiles..." echo "----------------------------" echo " " make -f admin/Makefile.common chown -R root:root . CFLAGS=$CPUOPT \ CXXFLAGS=$CPUOPT \ ./configure \ --prefix=/usr \ --sysconfdir=/etc/kde \ --with-xinerama \ --disable-debug \ --program-prefix="" \ --program-suffix="" \ --build=$TARGET-slackware-linux || exit 1 make $NUMJOBS || exit 1 make install DESTDIR=$PKG || exit 1 mkdir -p $PKG/usr/doc/kdenetwork-$VERSION cp -a AUTHORS COPYING INSTALL README kdenetwork.lsm $PKG/usr/doc/kdenetwork-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc # # append build information to the end of the slack-desc file # cat >> $PKG/install/slack-desc << EOF #---------------------------------------- BUILDDATE: `date` PACKAGER: $VL_PACKAGER HOST: `uname -srm` DISTRO: `cat /etc/vector-version` CFLAGS: $CFLAGS CONFIGURE: `awk "/\.\/configure\ /" $TMP/kdenetwork-$VERSION/config.log` EOF ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) if [ -d $PKG/usr/man ]; then gzip -9 $PKG/usr/man/man?/* fi cd $PKG echoc "Generating slapt-get dependencies..." green requiredbuilder -v -y $PKG echoc "Making package kdenetwork-$VERSION-$ARCH-$BUILD.tlz ..." green makepkg -l y -c n ../kdenetwork-$VERSION-$ARCH-$BUILD.tlz