wok-current annotate python-singledispatch/receipt @ rev 24890
trafshow: libpcap 1.10 has its own pcap_init
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 05 09:06:43 2022 +0000 (2022-04-05) |
parents | 1df6fa555414 |
children | 9005eda38457 |
rev | line source |
---|---|
pascal@20445 | 1 # SliTaz package receipt. |
pascal@20445 | 2 |
pascal@20445 | 3 PACKAGE="python-singledispatch" |
pascal@20445 | 4 SOURCE="singledispatch" |
pascal@20445 | 5 VERSION="3.4.0.3" |
pascal@20445 | 6 CATEGORY="development" |
pascal@20445 | 7 SHORT_DESC="Brings functools.singledispatch from Python 3.4 to Python 2.6-3.3" |
pascal@20445 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20445 | 9 LICENSE="MIT" |
pascal@20445 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@20445 | 11 WEB_SITE="https://pypi.org/project/$SOURCE/" |
pascal@20445 | 12 WGET_URL="https://files.pythonhosted.org/packages/d9/e9/513ad8dc17210db12cb14f2d4d190d618fb87dd38814203ea71c87ba5b68/$TARBALL" |
pascal@20445 | 13 |
pascal@20445 | 14 DEPENDS="python" |
pascal@21582 | 15 BUILD_DEPENDS="python python-setuptools" |
pascal@20445 | 16 |
pascal@24383 | 17 # What is the latest version available today? |
pascal@24288 | 18 current_version() |
pascal@24288 | 19 { |
pascal@24383 | 20 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||" |
pascal@24288 | 21 } |
pascal@24288 | 22 |
pascal@20445 | 23 # Rules to configure and make the package. |
pascal@20445 | 24 compile_rules() |
pascal@20445 | 25 { |
pascal@20445 | 26 python setup.py install --root=$DESTDIR |
pascal@20445 | 27 } |
pascal@20445 | 28 |
pascal@20445 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20445 | 30 genpkg_rules() |
pascal@20445 | 31 { |
pascal@20445 | 32 cp -a $install/usr $fs |
pascal@20445 | 33 } |