#!/bin/sh
#
# Copyright 2009 Tiago "Salvador" Souza
# Available under the terms of the GNU GPL.
#

# setuptools is required to build this pacakge
NAME="deluge"
VERSION="1.1.8"
REVISION="1"

PKG_SOURCEURL='http://download.${NAME}-torrent.org/source/${NAME}-${VERSION}.tar.bz2'

. $DLG_ROOT/config
. $DLG_ROOT/SCRIPTS/dropline-functions.sh

DLG_PKGER="salv"

# This package gets it's CFLAGS info from what was compiled into Python.
# Changing this variable is mainly a formality caused by this.
if [ "${PKG_ARCH%86}" != "$PKG_ARCH" ]; then
    PKG_ARCH=i486
fi

PKG_LOCALSTATEDIR=/var

prepare
analyzesource
        
spewdo "cd $PKG_SRCROOT"
spewdo "python setup.py build"
spewdo "python setup.py install --prefix=$PKG_PREFIX --root=$PKG_STAGEROOT"
tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
