wok-current annotate python-dateutil/receipt @ rev 25102
Use archive.org for some broken wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 21 16:00:20 2022 +0000 (2022-06-21) |
parents | 5d50a02468c7 |
children |
rev | line source |
---|---|
claudinei@3828 | 1 # SliTaz package receipt. |
claudinei@3828 | 2 |
claudinei@3828 | 3 PACKAGE="python-dateutil" |
pascal@11719 | 4 VERSION="1.5" |
claudinei@3828 | 5 CATEGORY="development" |
claudinei@3828 | 6 SHORT_DESC="Extensions to the standart python 2.3+ datetime module" |
claudinei@3828 | 7 MAINTAINER="claudinei@slitaz.org" |
pascal@15378 | 8 LICENSE="PSL" |
claudinei@3828 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
claudinei@3828 | 10 WEB_SITE="http://labix.org/python-dateutil" |
claudinei@3828 | 11 WGET_URL="http://labix.org/download/$PACKAGE/$TARBALL" |
claudinei@3828 | 12 |
pascal@15378 | 13 DEPENDS="python" |
pascal@21581 | 14 BUILD_DEPENDS="python python-dev python-setuptools" |
pascal@15378 | 15 |
pascal@24500 | 16 # What is the latest version available today? |
pascal@24500 | 17 current_version() |
pascal@24500 | 18 { |
pascal@24500 | 19 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24500 | 20 sed "/Python .gt;= 3.0/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24500 | 21 } |
pascal@24500 | 22 |
claudinei@3828 | 23 # Rules to configure and make the package. |
claudinei@3828 | 24 compile_rules() |
claudinei@3828 | 25 { |
claudinei@3828 | 26 cd $src |
pascal@15378 | 27 python setup.py install --root=$DESTDIR |
claudinei@3828 | 28 } |
claudinei@3828 | 29 |
claudinei@3828 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3828 | 31 genpkg_rules() |
claudinei@3828 | 32 { |
pascal@15378 | 33 for file in `find $install | grep 'pyc$'`; do |
claudinei@3828 | 34 rm $file |
claudinei@3828 | 35 done |
claudinei@3828 | 36 mkdir -p $fs/usr |
pascal@15378 | 37 cp -a $install/usr/lib $fs/usr |
claudinei@3828 | 38 } |
claudinei@3828 | 39 |