wok-current view python-dateutil/receipt @ rev 24996
updated nim (0.19.6 -> 1.6.6)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 10:46:30 2022 +0100 (2022-05-16) |
parents | 5d50a02468c7 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-dateutil"
4 VERSION="1.5"
5 CATEGORY="development"
6 SHORT_DESC="Extensions to the standart python 2.3+ datetime module"
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="PSL"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://labix.org/python-dateutil"
11 WGET_URL="http://labix.org/download/$PACKAGE/$TARBALL"
13 DEPENDS="python"
14 BUILD_DEPENDS="python python-dev python-setuptools"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed "/Python .gt;= 3.0/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 python setup.py install --root=$DESTDIR
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 for file in `find $install | grep 'pyc$'`; do
34 rm $file
35 done
36 mkdir -p $fs/usr
37 cp -a $install/usr/lib $fs/usr
38 }