#!/bin/sh # $Id: http://www.oregontechsupport.com/articles/build/wget.osx, Thu Nov 19 20:40:57 2009 # Build instuctions for Macintosh OS X 10.6.2 # This work is licensed under the Creative Commons Attribution-Noncommercial-Share # Alike 3.0 License, available at http://creativecommons.org/licenses/by-nc-sa/3.0/ URL=ftp://ftp.gnu.org/gnu/wget/wget-1.12.tar.bz2 ARCHIVE=${URL##*/} PACKAGE=${ARCHIVE%.tar.*} trap 'exit 1' ERR cd /tmp test -f $ARCHIVE || curl -LO ${URL}{,.sig} test -d $PACKAGE && rm -rf $PACKAGE test -x /usr/local/bin/gpg && gpg --keyserver hkp://subkeys.pgp.net --keyserver-options auto-key-retrieve --verify ${ARCHIVE}.sig tar --no-same-owner --no-same-permissions -xjvf $ARCHIVE cd $PACKAGE ./configure --prefix=/usr/local make sudo make install DESTDIR=$PKG