# SliTaz package receipt.

PACKAGE="python-numpy"
SOURCE="numpy"
VERSION="1.5.1"
CATEGORY="development"
SHORT_DESC="scientific computing library for the Python."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://numpy.scipy.org/"
WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
DEPENDS="python"
BUILD_DEPENDS="python python-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	python setup.py build &&
	python setup.py install --root=$PWD/_pkg
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	cp -a $_pkg/usr $fs
}

# Remove old package.
post_install()
{
	rm -rf $1/var/lib/tazpkg/installed/numpy
}