#!/bin/sh CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi PKG=$TMP/package-wget VERSION=1.8.2 ARCH=sparc BUILD=1 if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi rm -rf $PKG mkdir -p $PKG # place for the package to be built cd $TMP tar xzvf $CWD/wget-$VERSION.tar.gz cd wget-$VERSION chown -R root.root . CFLAGS="-O2" ./configure --prefix=/usr \ --sysconfdir=/etc \ sparc-slackware-linux make make install prefix=$PKG/usr sysconfdir=$PKG/etc mkdir -p $PKG/usr/doc/wget-$VERSION cp -a AUTHORS COPYING ChangeLog ChangeLog.README INSTALL \ MACHINES MAILING-LIST NEWS PATCHES README README.cvs TODO \ $PKG/usr/doc/wget-$VERSION gzip -9 $PKG/usr/info/* $PKG/usr/man/man1/* mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc # Build the package: cd $PKG makepkg -l y -c n $TMP/wget-$VERSION-$ARCH-$BUILD.tgz # Clean up the extra stuff: if [ "$1" = "--cleanup" ]; then rm -rf $TMP/wget-$VERSION rm -rf $PKG fi