# SliTaz package receipt. PACKAGE="python-dateutil" VERSION="1.5" CATEGORY="development" SHORT_DESC="Extensions to the standart python 2.3+ datetime module" MAINTAINER="claudinei@slitaz.org" LICENSE="PSL" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://labix.org/python-dateutil" WGET_URL="http://labix.org/download/$PACKAGE/$TARBALL" DEPENDS="python" BUILD_DEPENDS="python python-dev python-setuptools" # What is the latest version available today? current_version() { wget -O - $WEB_SITE 2>/dev/null | \ sed "/Python .gt;= 3.0/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { cd $src python setup.py install --root=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { for file in `find $install | grep 'pyc$'`; do rm $file done mkdir -p $fs/usr cp -a $install/usr/lib $fs/usr }