development/pil: Updated for version 1.1.6

This commit is contained in:
Daniel de Kok 2010-05-12 17:38:46 +02:00 committed by Robby Workman
parent 84c5f3b885
commit 8f170791e2

View file

@ -22,41 +22,30 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Exit on most errors
set -e
PRGNAM=pil
DISTNAM=Imaging
VERSION=1.1.6
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $DISTNAM-$VERSION
tar xzvf $CWD/$DISTNAM-$VERSION.tar.gz
tar xvf $CWD/$DISTNAM-$VERSION.tar.gz
cd $DISTNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
python setup.py bdist
tar zxvf dist/$(echo $PRGNAM | tr -s '[:lower:]' \
'[:upper:]')-$VERSION.linux-i686.tar.gz \
-C $PKG
python setup.py install --root=$PKG
find $PKG | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : \
| xargs strip --strip-unneeded 2> /dev/null