CWD=`pwd` PKG=/tmp/package-xchat rm -rf $PKG mkdir -p $PKG/usr VL_PACKAGER=JohnB316 VERSION=2.6.2 ARCH=i586 BUILD=4vl6 if [ "$ARCH" = "i386" ]; then SLKCFLAGS="-O2 -march=i386 -mcpu=i686" elif [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mcpu=i686" elif [ "$ARCH" = "s390" ]; then SLKCFLAGS="-O2" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2" fi cd /tmp rm -rf xchat-$VERSION tar xjvf $CWD/xchat-$VERSION.tar.bz2 cd xchat-$VERSION chown -R root.root . find . -perm 666 -exec chmod 644 {} \; find . -perm 664 -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --enable-ipv6 \ i486-slackware-linux make -j3 make install DESTDIR=$PKG chown -R root.root $PKG/usr/bin ( 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 ) rm $PKG/usr/info/dir gzip -9 $PKG/usr/info/* gzip -9 $PKG/usr/man/man?/* mkdir -p $PKG/usr/doc/xchat-$VERSION cp -a \ AUTHORS COPYING HACKING INSTALL README \ $PKG/usr/doc/xchat-$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/xchat-$VERSION/config.log` EOF cd $PKG echo "Generating slapt-get dependencies..." requiredbuilder -v -y $PKG echo "Building package..." makepkg -l y -c n xchat-$VERSION-$ARCH-$BUILD.tlz