All pastes #610887 Raw Edit

Mine

public text v1 · immutable
·published 2007-07-09 18:02 UTC
rendered paste body
#!/bin/sh
#Boricua revision date 2007/07/09
#boricua@despiertapr.com

#Set initial variables
CWD=`pwd`

if [ "$TMP" = "" ]; then
  TMP=/tmp
fi


VERSION=2.4.3
PKG_VERSION=2.4.3
ARCH=${ARCH:-i686}
BUILD=${BUILD:-1_rrp}
APP=sylpheed
PKG=$TMP/package-$APP

if [ "$ARCH" = "i386" ]; then
  SLKCFLAGS="-O2 -march=i386 -mtune=i686"
 elif [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
 elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
fi


rm -rf $PKG
mkdir -p $TMP $PKG
mkdir -p $TMP/$APP-$VERSION
rm -rf $TMP/$APP-$VERSION
cd $TMP || exit 1
tar -zxvf $CWD/$APP-$VERSION.tar.gz || exit 1
cd $APP-$VERSION || exit 1
chown -R root:root .
chmod -R u+w,go+r-w,a-s .

# Set configure options

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
  ./configure \
    --prefix=/usr \
      --sysconfdir=/etc \
        --localstatedir=/var \
	  --with-perl=/usr/bin/perl \
	    --enable-eps \
	      --enable-gif \
	        --enable-png \
		  --build=$ARCH-slackware-linux \
		    --host=$ARCH-slackware-linux

		    make || exit
		    make install DESTDIR=$PKG||exit