wok-current annotate python-chardet/receipt @ rev 25109
Up perl-date-manip (6.88)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 25 09:21:55 2022 +0000 (2022-06-25) |
parents | de3280120146 |
children | 97eb61f05460 |
rev | line source |
---|---|
slaxemulator@6839 | 1 # SliTaz package receipt. |
slaxemulator@6839 | 2 |
slaxemulator@6839 | 3 PACKAGE="python-chardet" |
Hans-G?nter@23470 | 4 VERSION="3.0.4" |
slaxemulator@6839 | 5 CATEGORY="development" |
Hans-G?nter@23470 | 6 MAINTAINER="maintainer@slitaz.org" |
Hans-G?nter@23470 | 7 SHORT_DESC="Python module for character encoding auto-detection." |
pascal@15378 | 8 LICENSE="LGPL2.1" |
pascal@20891 | 9 WEB_SITE="https://github.com/chardet/chardet" |
Hans-G?nter@23470 | 10 |
Hans-G?nter@23470 | 11 SOURCE=chardet |
Hans-G?nter@23470 | 12 TARBALL="$PACKAGE-$VERSION.tgz" |
Hans-G?nter@23470 | 13 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" |
slaxemulator@6839 | 14 |
pascal@15378 | 15 DEPENDS="python" |
Hans-G?nter@23472 | 16 BUILD_DEPENDS="python-dev python-setuptools" |
pascal@15378 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
slaxemulator@6839 | 24 # Rules to configure and make the package. |
Hans-G?nter@23470 | 25 compile_rules() |
Hans-G?nter@23470 | 26 { |
al@18077 | 27 python setup.py install --root=$DESTDIR --optimize=1 |
slaxemulator@6839 | 28 } |
al@18077 | 29 |
slaxemulator@6839 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6839 | 31 genpkg_rules() |
slaxemulator@6839 | 32 { |
Hans-G?nter@23470 | 33 cp -a $install/usr $fs |
slaxemulator@6839 | 34 } |