#!/bin/sh CWD=`pwd` TMP=/tmp NAME=kdnssd-avahi PKG=$TMP/package-$NAME VL_PACKAGER=JohnB316 # 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 $NAME-$VERSION.tar.bz2..." tar xjvf $CWD/$NAME-$VERSION.tar.bz2 || exit 1 cd $NAME || exit 1 chown -R root:root . # # configure # echo " " echo " " echo ":: starting configure & make..." echo "-------------------------------" echo " " make -f Makefile.cvs CFLAGS=$CPUOPT \ CXXFLAGS=$CPUOPT \ ./configure \ --prefix=/usr \ --sysconfdir=/etc/kde \ --with-xinerama \ --disable-debug \ --program-prefix="" \ --program-suffix="" \ --build=i486-slackware-linux || exit 1 # make the Qt moc files first cd $NAME /usr/lib/qt/bin/moc ./remoteservice.h -o remoteservice.moc /usr/lib/qt/bin/moc ./servicebrowser.h -o servicebrowser.moc /usr/lib/qt/bin/moc ./responder.h -o responder.moc /usr/lib/qt/bin/moc ./query.h -o query.moc /usr/lib/qt/bin/moc ./publicservice.h -o publicservice.moc /usr/lib/qt/bin/moc ./domainbrowser.h -o domainbrowser.moc cd .. # now let's make this thing! make $NUMJOBS || exit 1 make install DESTDIR=$PKG || exit 1 cd $TMP/$NAME mkdir -p $PKG/usr/doc/$NAME-$VERSION cp -a README $PKG/usr/doc/$NAME-$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/$NAME/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 $NAME-$VERSION-$ARCH-$BUILD.tlz ..." green makepkg -l y -c n ../$NAME-$VERSION-$ARCH-$BUILD.tlz